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 a wrapper method?

1110


What is the covariant return type?

1102


Can a string be null?

995


Who is founder of java?

1000


Explain wait() method of object class ?

1230


What do you mean by scope of variable?

894


What does || || mean in math?

945


When do we need to use internal iteration? When do we need to use external iteration?

1129


What is nextline method in java?

1039


What do you mean by of string::valueof expression in java 8?

968


What is meant by object?

1010


What are the ways to instantiate the class class?

1106


What is a heavyweight component?

1027


Can we write any code after throw statement?

1058


How many classes can any class inherit java?

975