Pergunta de entrevista da empresa FactSet

Explain how C++ and Java are different.