What is an object?s lock? Give name of object?s that have
locks?
Answers were Sorted based on User's Feedback
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 loop in java?
What is the purpose of the system class in java programming?
Difference between string, string builder, and string buffer?
what is the reason behind non static method cannot be referenced from a static Context?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
How many times garbage collector will invoke an object?s finalize() method?
What is more advisable to create a thread, by implementing a Runnable interface or by extending Thread class?
How does remove work in java?
Why is it called boolean?
Can an abstract class be final?
What are some examples of variable costs?
What is connection class in java?