Cognizant interview question

difference between c,c++ and java.