Infosys interview question

Java oops concept jsp