Caterpillar Interview Question

Difference between C++ and Java.