Cognizant interview question

Difference between java and C