Oracle
1Z0-809 · Question #78
1Z0-809 Question #78: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-809 to reveal the answer and full explanation for question #78. The question stem and answer options stay visible for context.
Question
Given the code fragment:
Map<Integer, String> books = new TreeMap<>();
books.put (1007, "A");
books.put (1001, "B");
books.put (1001, "B");
books.put (1003, "B");
System.out.println (books);
What is the result?
Options
- A{1007 = A, 1002 = C, 1001 = B, 1003 = B}
- B{1001 = B, 1002 = C, 1003 = B, 1007 = A}
- C{1002 = C, 1003 = B, 1007 = A}
- D{1007 = A, 1001 = B, 1003 = B, 1002 = C}
Unlock 1Z0-809 to see the answer
You've previewed enough free 1Z0-809 questions. Unlock 1Z0-809 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.