IBM interview question

core java basic