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 is role of void keyword in declaring functions?
Is array an object in java?
What are the main differences between the java platform and other platforms?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
What is OOP Language?
In which order the iterator iterates over collection?
How to obtain a performance profile of java program
what is the final keyword denotes in java?
Why java is a platform independent? Explain
What is static method with example?
Write a java program that prints all the values given at command-line.
What is a parameter in matrices?
Is java 11 paid version?
What is the difference between a scrollbar and a scrollpane?
Which command from the jdk compiles a java program?