Cognizant interview question

what is the difference between c + + and Java