Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are the differences between heap and stack memory in java?

997


What is the function of http?

973


Is integer a class?

1014


Explain a situation where finally block will not be executed?

970


What is the purpose of the wait(), notify(), and notifyall() methods in java programming?

1000


What is integer valueof?

1041


What is boolean in java?

917


What is the difference between scrollbar and scrollpane?

1045


What is compareto () in java?

909


Is 0 an irrational number?

997


How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?

1338


What is a double vs float?

943


Write code to implement bubble sort in java?

944


Why object class is super class for every class in java?

963


Can you start a thread twice in Java?

1060