IBM interview question

Simple core Java questions