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

Why Java doesn’t support multiple inheritance?

1048


Which is the best approach for creating thread ?

1217


What are thread local variables?

1156


What is the difference between heap and stack memory?

1202


What is the difference between import java.util.date and java .util?

1058


How do you convert bytes to character in java?

1007


explain copyonwritearraylist and when do we use copyonwritearraylist?

951


Are arrays classes in java?

1040


Difference between object and reference?

1180


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

1016


Is java hashset ordered?

1123


What is the inheritance?

978


Why is whitespace important?

1086


What is complexity in java?

1058


How do you pass by reference?

1068