Deloitte interview question

Why do we use Java when C++ is available?