FactSet Interview Question

Explain how C++ and Java are different.