Intuit interview question

Differences between java and c++.