Oracle interview question

3 questions in written test 1 hour time. Core Java questions/puzzles.