1z0-809 Exam Question 16
Given:

And given the commands:
javac Test . java
java Test
What is the result?

And given the commands:
javac Test . java
java Test
What is the result?
1z0-809 Exam Question 17
Given the following array:

Which two code fragments, independently, print each element in this array?


Which two code fragments, independently, print each element in this array?

1z0-809 Exam Question 18
The following grid shows the state of a 2D array:

This grid is created with the following code:

Which line of code, when inserted in place of //line n1. adds an x into the grid so that the grid contains three consecutive X'S?

This grid is created with the following code:

Which line of code, when inserted in place of //line n1. adds an x into the grid so that the grid contains three consecutive X'S?
1z0-809 Exam Question 19
Given the code fragment:
Map<Integer, String> books = new TreeMap<>();
books.put (1007, "A");
books.put (1002, "C");
books.put (1001, "B");
books.put (1003, "B");
System.out.println (books);
What is the result?
Map<Integer, String> books = new TreeMap<>();
books.put (1007, "A");
books.put (1002, "C");
books.put (1001, "B");
books.put (1003, "B");
System.out.println (books);
What is the result?
1z0-809 Exam Question 20
Which two statements are true about synchronization and locks? (Choose two.)