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

Throwing the exception exits the synchronized{} block so
that answer doesn't actually add anything.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there is any difference between a scrollbar and a scrollpane?

976


Explain Basics of OOP Language in java

1035


What is an image buffer?

974


How can we create objects if we make the constructor private ?

982


What are class types in java?

1060


What is substring 1 in java?

1123


How the interruptible method gets implemented?

954


What are heterogeneous objects?

1017


Define locale.

1022


Is it possible to write a regular expression to check if string is a number?

1008


Why can't you declare a class as protected?

1110


Explain the public class modifier?

936


Can vector have duplicates in java?

922


Is stringwriter thread safe?

970


What about method local inner classes or local inner classes in java?

1036