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

Differentiate between postfix and prefix operators in java.

1 Answers   HCL,


Can a class be private?

1 Answers  


Is vector synchronized in java?

1 Answers  


what is the replacement for GOTO in java?

2 Answers   CTS,


what is diff bet iterator and enumeration?

4 Answers  


Which is bigger float or double java?

1 Answers  


What are desktop procedures?

1 Answers  


how your day start in your company

1 Answers  


what is the purpose of class "Object" which is base class for all classes?

3 Answers  


How 'java' got its name and what it stands for?

11 Answers   Wipro,


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

1 Answers  


How do you sort arraylist in descending order?

1 Answers  


Categories