Infosys interview question

Basic java questions and oops concepts