Amadeus interview question

difference between c++ and java