IBM interview question

Basic Java and oops concepts