IBM iX interview question

Some basic Java OO related question and a simple algorithm question