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 / ask

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.

Object Lock - If a non-static method is marked as
Synchronzied and called by a Thread, the current instance
(Object) will be locked util the method execution completed.

Is This Answer Correct ?    53 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main differences between notify and notifyAll in Java?

1037


How can we make a class virtual?

1060


How can I right-justify a string?

1094


what is difference betweem home interface and remote interface?

2563


How can you generate random numbers in java?

984


Which list is sorted in java?

964


What exceptions occur during serialization?

1033


What is the purpose of using javap?

1027


How do you use equal in java?

993


How a variable is stored in memory?

922


Why we use set in java?

942


what do you understand by the term string with respect to java?

977


How does compareto method work?

911


How does a cookie work in Servlets?

789


What is the difference between an object-oriented programming language and object-based programming language?

944