BT Group interview question

easy java question like run time polymorphism and second highest salary from table in sql