GXS interview question

Basic Java Question