Java trivia questions