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...

wat is class level lock and object level lock

Answer Posted / michael selvan

Class Lock - If a static method is marked as Synchrnozied
and called by a Thread, the whole Class will be locked
until the method execution completed.

Note : If we declare as a any static variables or methods
those will be stored in class area. So, if the method is
synchronized static . It'll lock the complete class.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which collection is sorted in java?

1084


What do you mean by jjs in java8?

1062


Explain about map interface in java?

1051


Can list have duplicates in java?

958


What is the static block?

1119


What do you mean by Hash Map and Hash Table?

1144


What is a local block?

1192


How to sort a collection of custom Objects in Java?

1111


I want to re-reach and use an object once it has been garbage collected. How it's possible?

1073


How do you allocate memory to object?

1045


Where are register variables stored?

1052


How many characters is 2 bytes?

1040


What is compareto () in java?

1024


Can we nested try statements in java?

1148


How do you check if a number is a perfect square?

1034