QAD interview question

Java and SQL concepts