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

Implement a stack with push (), pop() and min() in O(1) time.

1032


Why do we create public static method in java?

1044


What is meant by class loader? How many types are there? When will we use them?

912


Can a string be null?

924


What type of language is java?

937


What is tree in java?

860


Why declare Main() method as a static in java ?

1021


When can an object reference be cast to an interface reference in java programming?

955


Can we declare the static variables and methods in an abstract class?

937


What is the primitive type byte?

940


Implementations of set interface?

942


Explain exception chaining in java?

1086


What is the use of generics? When was it added to the Java development Kit?

963


What is the difference between state-based unit testing and interaction-based unit testing?

883


What are the different ways of creating thread?

962