IBM interview question

Basic java concepts