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 is a method in coding?

1061


Describe what happens when an object is created in java ?

1010


Can we start a thread twice in java?

987


What is treemap in java?

949


How to perform merge sort in java?

1060


What is the differences between c++ and java? Explain

1057


How do I print a “?

998


What are 5 boolean operators?

1181


What is the use of conditional statement?

985


Which api is provided by java for operations on set of objects?

1461


What does flag mean in java?

1025


What is anonymous inner class?

1083


From the two, which would be easier to write: synchronization code for ten threads or two threads?

1056


How to make a write-only class in java?

1065


List out benefits of object oriented programming language?

897