ATMECS interview question

Que were mainly on java and they had also asked some database queries