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

How many times finalize method will be invoked? Who invokes finalize() method in java?

1072


What is local class in java?

1146


How do you do descending order in java?

1013


Explain about main() method in java ?

1117


What is advantage of java?

1070


Why wait and notify methods are declared in object class?

1084


what is an objects lock and which objects have locks? : Java thread

1078


how to create daemon thread in java?

1121


What is the null?

1060


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

11390


Is zero a natural number?

1102


Can we extend private class in java?

1024


What are singleton services?

965


How do you override a private method in java?

1031


What is instance means in java?

1098