Pregunta de entrevista de FactSet

Explain how C++ and Java are different.