Accenture interview question

what is difference between java and c++