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
explain local datetime api in java8?
What are nested classes in java?
How to change value in arraylist java?
What is a default constraint?
Do I need to import java.lang package any time? Why?
Difference between a process and a program?
What is meant by object?
what methods would you overwrite in java.lang.object class?
What are the principle concepts of oops?
What is thread life cycle?
Explain about anonymous inner classes in java?
Explain the scope of a variable.
Can you call one constructor from another if a class has multiple constructors?
What are the types of exceptions?
Is it necessary that each try block must be followed by a catch block?