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 %02d?

1144


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

1149


What is numeric data type?

1043


What is an immutable object? How do you create one in java?

1106


What is linked hashset and its features?

1108


What are the drawbacks for singleton class?

1077


Can you inherit from an abstract class java?

1048


What is bool mean?

1141


What is a singleton in genetics?

1128


Can we override private method?

1129


Why can't you declare a class as protected?

1207


give an example for encapsulation?

1093


What are static variables and functions?

1186


What is the benefit of inner / nested classes ?

1035


What is meant by class and object in java?

1112