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 / ejp

The lock is released when the holding thread exits the
synchronized block.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between concurrent hashmap and hashtable and collections

1129


How do you calculate square roots?

1216


What is cr keyboard?

1342


Explain yield() method in thread class ?

1116


What is variable and constant explain with example?

1167


How hashmap works in java?

1089


Explain where variables are created in memory?

1054


What do you mean by thread safe?

1027


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

1018


What is contract between hashcode and equal method?

1096


Which package is used for pattern matching with regular expressions?

1154


What is class and its types?

1102


Explain the public class modifier?

996


What is the purpose of skeleton and stub?

1351


What are the advantages of java inner classes?

1113