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
What is metaspace?
What is Remote Server?
What are the pros and cons of detached objects?
What is the difference between ear, jar and war file?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
Should synchronization primitives be used on bean methods?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
What is an abstract method?
What is JTS?
What are externizable interface?
what is a portable component?
What is mdb and what is the special feature of that?
Difference between new operator and class.forname().newinstance()?
What is the difference between session and entity beans?