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

Is boolean a data type in java?

0 Answers  


In case of inheritance what is the execution order of constructor and destructor?

0 Answers   Agilent,


How to obtain a performance profile of java program

0 Answers  


can write code for serialization ?

1 Answers   HCL, MegaSoft,


How many functional interfaces does java 8 have?

0 Answers  






What is close method? How it's different from Finalize & Dispose?

0 Answers   InfoAxon Technologies,


What is the purpose of the system class in java programming?

0 Answers  


What is "this" keyword in java? Explain

0 Answers  


HOW TO PRINT A NO IN WORDS USING WHILE LOOP THE NO WILL BE PRINTED WHEN IT WILL BE IN THE RANGE BETWEEN 1 AND 3?

1 Answers  


What is a nested list?

0 Answers  


What is Distributed Application and what is its usage?

2 Answers  


Is static a keyword in java?

0 Answers  


Categories