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

Hi Friends, I am beginner in java. what i know about
synchonized keyword is,If more that one 1 thread tries to
access a particular resource we can lock the method using
synchronized keyword. Then after that how the lock is
released and how next thread access that.Please explain with
example.

Answer Posted / jitu

ok i agree with u ejp

wat abt this ??

thread invokes wait() method..

is holding remains in synchronized block or it exists.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the importance of join() method in thread class?

1086


What is a class reference?

1075


State the main difference between c++ and java?

1070


What is Hierarchy of exception?

1068


Explain about transient variables in java?

1087


Explain the difference between extends thread vs implements runnable in java?

1110


What is module in project?

947


Explain access specifiers?

1161


Why inputstreamreader is used in java?

996


What is the difference between the prefix and postfix forms of the ++ operator?

1005


Which api is provided by java for operations on set of objects?

1444


What does sprintf mean?

929


What about interrupt() method of thread class ?

1057


What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

1051


Why we use set in java?

984