Cognizant interview question

Difference b/w c++ and java?