Infosys interview question

Basics of core java