SAP interview question

Classes and Objects in Java . Nested SQL queries