Infosys interview question

They asked about different between Java and C++