Data Intelligence interview question

What are some differences between Java and C++?