Cognizant Interview Question

Difference b/w c++ and java?