What is an object?s lock? Give name of object?s that have
locks?

Answers were Sorted based on User's Feedback



What is an object?s lock? Give name of object?s that have locks?..

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 an object?s lock? Give name of object?s that have locks?..

Answer / vijay

For Example all synchrinized objects has locks.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is jpa specification?

0 Answers  


What is consumer in java?

0 Answers  


Which graphs are functions?

0 Answers  


Is singleton class immutable?

0 Answers  


What is javac used for?

0 Answers  


Explain about GridBag Layout?

1 Answers  


What is a top level class in java?

0 Answers  


What is square root in java?

0 Answers  


What does @override mean?

0 Answers  


What is the use of static methods?

0 Answers  


Can one thread block the other thread?

0 Answers  


Difference between start() and run() method of thread class?

0 Answers  


Categories