Infosys interview question

Sql commands and oops and java