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

Explain the polymorphism principle?

991


What is the synonym of procedure?

1087


What is :: operator in java 8?

992


Explain about wait() method?

1011


What does localhost mean?

921


What is singleton class example?

1002


Name component subclasses that support painting in java programming?

1045


Can a top level class be private or protected?

1035


What is hashtable and explain features of hashtable?

967


What is your platform?s default character encoding and how to know this?

2354


How to create a thread in java?

1113


Are arrays passed by reference in java?

900


What is the symbol for space?

978


What is bytecode in java ?

1167


What are different data structures in java?

1023