Edifecs interview question

Sql Queries and Java oops concept asked to me.