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 a working thread? : Java thread
Is java owned by oracle?
What is an object’s lock and which object’s have locks?
What is bytecode in java ?
Describe the term diamond problem.
Is singleton thread safe in java?
What is class forname?
can used Protected Class outside Function.?
What is a method in coding?
What is an escape character in java?
Do we need to manually write Copy Constructor?
What is package protected in java?
What are the two parts of a conditional statement?
What will be the initial value of an object reference which is defined as an instance variable?
Can we assign the reference to this variable?