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

How many types of equations are there?

741


Can final class have constructor?

684


Is char a method in java?

732


Where are the card layouts used?

811


Explain Basics of OOP Language in java

783


What are the features of junit?

811


Can size_t be negative?

790


What is ctrl m character?

730


What is a ternary operator in java? What is an interface?

753


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?

789


List out benefits of object oriented programming language?

659


What is meant by attribute?

772


Can a static member function access member variable of an object?

756


What does flag mean in java?

734


what is synchronization? : Java thread

776