Tech Mahindra interview question

Diff. between JAVA and C