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

The lock will be released & allocation depends on the scheduler

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can an interface have a constructor?

974


What is the char data type?

1004


How variables are stored in memory?

1004


How do you make a thread in java?

1103


if u open login & logout ,how can udisplay the timelogin & logout members ?

2285


What is a module function?

1107


Why do we create threads in java?

1256


Is null keyword in java?

947


Which class cannot be a subclass in java?

1027


What are the two types of java?

1176


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

1292


Explain working of call by reference function invoking.

1027


What is package private scope in java?

951


Why main function is static?

1253


What is a literal coding?

1026