Solved

What Is the Relationship Between Synchronized Code and Code That

Question 67

Multiple Choice

What is the relationship between synchronized code and code that is locked using a ReentrantLock object?


A) synchronized code stops the race condition, locks do not.
B) synchronized is a single lock, but we may have many ReentrantLock objects.
C) The two are exactly the same.
D) The two concepts are not related.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions