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

Give some features of interface?

1047


Differences between C and Java?

1169


When is the arraystoreexception thrown?

1005


What is the use of parseint in java?

1006


What are the differences between Java 1.0 and Java 2.0?

2246


Explain some best practices you would apply while using collection in java?

1010


how to write a server program and sending the mails to the server using smtp protocol please help me

2045


How do you execute a thread in java?

940


What should I import for arraylist in java?

1019


What is a boolean output?

943


Under what conditions is an object’s finalize() method invoked by the garbage collector?

1019


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

1060


List the different types of classloaders in java.

959


What is instance means in java?

1026


What is the difference between a vector & an array list?

1147