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


Please Help Members By Posting Answers For Below Questions

What does java edition mean?

523


Can we inherit a class with private constructor?

564


Which java version is latest?

534


What is an abstract method in java programming?

598


Can we write multiple catch blocks under single try block?

566






Can private members of a base class are inheritable justify?

481


What is a vararg?

544


what is function overloading in java?

695


What is the transient keyword?

625


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

573


How many bits is a double?

524


Which container method is used to cause a container to be laid out and redisplayed in java programming?

592


What is arrays fill in java?

539


Can we define package statement after import statement in java?

553


How do you compare arrays in java?

494