Anonymous Interview Question

The interviewer ask Java, oops, sql queries,