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 |
Differentiate between postfix and prefix operators in java.
Can a class be private?
Is vector synchronized in java?
what is the replacement for GOTO in java?
what is diff bet iterator and enumeration?
Which is bigger float or double java?
What are desktop procedures?
how your day start in your company
what is the purpose of class "Object" which is base class for all classes?
How 'java' got its name and what it stands for?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
How do you sort arraylist in descending order?