What is an object?s lock? Give name of object?s that have
locks?
Answer Posted / 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 |
Post New Answer View All Answers
What are the differences between heap and stack memory in java?
What is the function of http?
Is integer a class?
Explain a situation where finally block will not be executed?
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
What is integer valueof?
What is boolean in java?
What is the difference between scrollbar and scrollpane?
What is compareto () in java?
Is 0 an irrational number?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
What is a double vs float?
Write code to implement bubble sort in java?
Why object class is super class for every class in java?
Can you start a thread twice in Java?