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 a get method?
What are legal modifiers that we can use to declare an inner class?
What is java lang string?
Is vector thread safe in java?
What is variable and example?
why java does not contain pointers?
How can we pass argument to a function by reference instead of pass by value?
What is meant by string is immutable?
Name component subclasses that support painting in java programming?
What is the difference between JDK and JVM?
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.
what is multi-tasking
3 Answers Anand Group, Photon Infotech, Tech Mahindra,