IBM interview question

About java basics