Zensar Technologies interview question

How Java and C++ are different