FactSet interview question

Explain how C++ and Java are different.