Infosys interview question

Basics of java and oops concept