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

Difference between object and reference?

1151


What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

945


What are java packages? What is the significance of packages?

988


How do you declare an array in java?

1033


What are the advantages and disadvantages of object cloning?

1088


How is string immutable in java?

1013


Why strings in java are called as immutable?

971


What is the difference between inner class and nested class?

1056


How would you use Bubble Sort to sort the number of elements?

990


How big is a gigabyte?

1015


What do you mean by object?

952


What’s a deadlock?

1087


Highest level event class of the event-delegation model?

3995


Add a value x to array from index l to r where 0 <= l <= r <= n-1

1079


Can we clone singleton class in java?

943