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...

What are synchronized methods and synchronized statements?

Answer Posted / tarunam verma

Syncronized methods are executed only after a lock is
acheived on the classes or objects specified in the methids
and after that the methids are executed

synchronized statements are the synchronised the bolck
containg the lock on some resource, statment in that block
are called synchronised statements

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is metaspace?

1031


What is Remote Server?

2202


What are the pros and cons of detached objects?

984


What is the difference between ear, jar and war file?

1139


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

1033


How would you reatach detached objects to a session when the same object has already been loaded into the session?

1213


Should synchronization primitives be used on bean methods?

1068


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

1045


What is an abstract method?

1069


What is JTS?

2376


What are externizable interface?

1065


what is a portable component?

2013


What is mdb and what is the special feature of that?

1057


Difference between new operator and class.forname().newinstance()?

1135


What is the difference between session and entity beans?

1116