Differences between C++ and Java