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 a get method?

0 Answers  


What are legal modifiers that we can use to declare an inner class?

1 Answers   Infosys,


What is java lang string?

0 Answers  


Is vector thread safe in java?

0 Answers  


What is variable and example?

0 Answers  






why java does not contain pointers?

13 Answers   Infosys, TCS,


How can we pass argument to a function by reference instead of pass by value?

0 Answers  


What is meant by string is immutable?

0 Answers  


Name component subclasses that support painting in java programming?

0 Answers  


What is the difference between JDK and JVM?

0 Answers  


class A { private int i; } class B extends A { private int i; } if I create an object of B class what will be the memory of that object.

2 Answers   Yamaha,


what is multi-tasking

3 Answers   Anand Group, Photon Infotech, Tech Mahindra,


Categories