What is an object?s lock? Give name of object?s that have
locks?
Answers were Sorted based on User's Feedback
Answer / guest
An object?s lock is a mechanism that is used by multiple
threads to obtain synchronized access to the object. A
thread may execute a synchronized method of an object only
after it has acquired the object?s lock. All objects and
classes have locks. A class?s lock is acquired on the
class?s Class object.
Is This Answer Correct ? | 1 Yes | 1 No |
What is jpa specification?
What is consumer in java?
Which graphs are functions?
Is singleton class immutable?
What is javac used for?
Explain about GridBag Layout?
What is a top level class in java?
What is square root in java?
What does @override mean?
What is the use of static methods?
Can one thread block the other thread?
Difference between start() and run() method of thread class?