Infosys interview question

Basic questions with Java indepth