Capgemini interview question

Java basics and sql queries