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

What is array size in java?

1017


Can constructor be protected in java?

1017


What do you mean by multithreaded program?

1061


what is difference betweem home interface and remote interface?

2677


How to create a custom exception?

1036


What is a byte array?

1148


What are the Static and Dynamic Variables? Differentiate them.

1156


Why we use methods in java?

1046


How do you create a method in java?

1044


What is udp in java?

1039


How is java hashmap implemented?

1074


Why do people says “java is robust”?

1082


I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

1030


What is a for loop in java?

1094


Name some OOPS Concepts in Java?

1131