READ Free Dumps For Oracle- 1z0-851
Question ID 3708 | Given: |
Option A | A. move the line 12 print statement into the foo() method |
Option B | B. change line 7 to public synchronized void go() { |
Option C | C. change the variable declaration on line 2 to private volatile int x; |
Option D | D. wrap the code inside the foo() method with a synchronized( this ) block |
Option E | E. wrap the for loop code inside the go() method with a synchronized block synchronized(this) { // for loop code here } |
Correct Answer | A,D |
Question ID 3709 | Given: |
Option A | A. java.lang.RuntimeException: Problem |
Option B | B. run. |
Option C | C. End of method. |
Option D | D. End of method. |
Option E | E. run. |
Correct Answer | D,E |