IBM interview question

Java fundamental questions