Capgemini interview question

Difference between C++ and java SQL queries