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

What is the purpose of static methods and static variables?

998


How java uses the string and stringbuffer classes?

1001


What is numeric function?

948


What is flag in java?

926


What is the advantage of functional interface in java 8?

943


What is difference between filereader and bufferedreader?

898


What do you understand by synchronization?

985


What is the difference between call by reference and call by pointer?

913


What is difference between static class and singleton pattern?

950


What does @override mean?

1106


List some java keywords sun like c, c + + keywords?

961


What do you understand by the term wrapper classes?

941


What is static data type in java?

974


What is the common usage of serialization?

1067


What do you mean by aggregation?

1187