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:

Verified
Correct Answer:
Verified
Q62: Each thread runs for a short amount
Q63: Under what conditions are locks unnecessary for
Q64: Examine the SharedData class shown below.Suppose two
Q65: Suppose that the class XYZ implements the
Q66: The _ occurs when a thread that
Q68: In the initial release of the Java
Q69: The _ method is called by a
Q70: The _ method does not actually cause
Q71: Consider an old fashioned telephone booth that
Q72: Which of the following is a characteristic