AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


READ Free Dumps For Oracle- 1z0-804





Question ID 3541

ConcurrentMap <String, String> PartList = new ConcurrentMap<>();
Which fragment puts a key/value pair in partList without the responsibility of overwriting an existing key?

 

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
Explanation


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
Explanation

Send email to admin@getfreedumps for new dumps request!!!