XYZ interview question

Java basics and sql basics