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

What is a container in a gui?

993


Is constructor inherited?

963


How are observer and observable used in java programming?

1029


Difference between operator overloading and function overloading

1063


What are jee technologies?

1015


Explain the difference between extends thread vs implements runnable in java?

1130


What is the difference between state-based unit testing and interaction-based unit testing?

942


Which is better stringbuilder or stringbuffer?

933


Explain java coding standards for methods?

1042


What language is pass by reference?

1018


What does nextint () do in java?

980


What is super keyword explain with example?

1287


What does file separator do in java?

1014


What is consumer in java?

976


Differece between class and generic class?

1041