READ Free Dumps For Oracle- 1z0-804
Question ID 3541 | ConcurrentMap <String, String> PartList = new ConcurrentMap<>(); |
Option A | A. partList.out(key,"Blue Shirt"); |
Option B | B. partList.putIfAbsent(key,"Blue Shirt"); |
Option C | C. partList.putIfNotLocked (key,"Blue Shirt"); |
Option D | D. partList.putAtomic(key,"Blue Shirt") |
Option E | E. if (!partList.containsKey(key)) partList.put (key,"Blue Shirt"); |
Correct Answer | B |
Question ID 3542 | |
Option A | A. The program produces the correct result, with similar performance to the original. |
Option B | B. The program produces the correct result, with performance degraded to the equivalent of being singlethreaded. |
Option C | C. The program produces an incorrect result. |
Option D | D. The program goes into an infinite loop. |
Correct Answer | D |