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

Why volatile is used in java?

1148


What is tostring () method?

1090


What is the intersection and union methods?

1080


Is java type safe?

1008


Explain how to convert any java object into byte array.

1014


What is the use of bufferedreader?

1048


If we don’t want some of the fields not to serialize how to do that?

1063


What is int lol?

1191


What is a functional interface?

1095


Why do we create public static method in java?

1168


How do you do exponents in java?

1100


Explain java coding standards for methods?

1090


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

1009


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

1242


Is boolean a wrapper class in java?

1107