What is an object?s lock? Give name of object?s that have
locks?
Answer Posted / 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 |
Post New Answer View All Answers
Why volatile is used in java?
What is tostring () method?
What is the intersection and union methods?
Is java type safe?
Explain how to convert any java object into byte array.
What is the use of bufferedreader?
If we don’t want some of the fields not to serialize how to do that?
What is int lol?
What is a functional interface?
Why do we create public static method in java?
How do you do exponents in java?
Explain java coding standards for methods?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
Is boolean a wrapper class in java?