Accenture interview question

How can you differentiate between C, C++, and Java?