Avaya interview question

difference betn java and c++