Oracle Java SE 8 Programmer II 1z0-809 Question # 45 Topic 5 Discussion

Oracle Java SE 8 Programmer II 1z0-809 Question # 45 Topic 5 Discussion

1z0-809 Exam Topic 5 Question 45 Discussion:
Question #: 45
Topic #: 5

Given the code fragment:

Map books = new TreeMap<>();

books.put (1007, “A”);

books.put (1002, “C”);

books.put (1003, “B”);

books.put (1003, “B”);

System.out.println (books);

What is the result?


A.

{1007=A, 1003=B, 1002=C}


B.

{1007=A, 1003=B, 1003=B, 1002=C}


C.

{1007=A, 1002=C, 1003=B, 1003=B}


D.

{1002=C, 1003=B, 1007=A}


Get Premium 1z0-809 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.