Anonymous interview question

The interviewer ask Java, oops, sql queries,