Infosys interview question

java multiple inheritance, sql query