Infosys interview question

Lot of questions on JavaScript and Java