EG interview question

Fundamentals of java, SQL queries