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

Is arraylist dynamic in java?

1060


What class allows you to read objects directly from a stream in java programming?

1148


Explain about main() method in java ?

1119


How do you do a line break in java?

1087


Why Java is not pure Object Oriented language?

1169


What are synchronized blocks in java?

1284


What are recursive functions? Give some examples?

1255


Why are parameters used in functions?

1083


What is comparator in java?

1072


What is an argument java?

1028


What is the benefit of inner classes in java?

1145


Explain the meaning of java applet.

1132


extending thread class or implementing runnable interface. Which is better? : Java thread

1046


can I implement my own start() method? : Java thread

1042


What’s the difference between the methods sleep() and wait()?

1073