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...

Can a lock be acquired on a class?

Answer Posted / ravikiran(aptech mumbai)

yes indirectly because we can aquire a lock on the object of
the class.And for the class level lock we make use of static
synchromnized block.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ternary operator in java?

1013


Does java initialize arrays to zero?

960


Why you should not use singleton?

918


What is garbage collection? What is the process that is responsible for doing that in java?

1055


What is appletviewer?

984


What are the ways in which a thread can enter the waiting state?

882


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

999


What are features of java?

976


Is singleton a bad practice?

985


What is definition and declaration?

965


What is rule of accessibility in java?

962


Is string a wrapper class?

963


Where will it be used?

1888


What is a instance variable in java?

985


If goto and const is reserve words than why it is not work in java?

1914