Netcracker Technology interview question

Core Java Basic question in second round