Frage im Vorstellungsgespräch bei Tata Consultancy Services

If both Java and C++ are Object oriented then why choose Java and not C++?