Infosys interview question

About c, java and c++