IndiaNIC Infotech interview question

I found the most difficulty question based on core java