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
Where can I ask questions and make suggestions about seam?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
Describe activation process?
Why does the option tag render selected=selected instead of just selected?
Explain the advantages and disadvantages of detached objects.
How to implement RMI in Java?
Can constructors be synchronized in java?
What are callback interfaces?
What is the difference between RMI and Corba?
What do you mean by Socket Programming?
What is a tasks priority and how is it used in scheduling?
Why are my checkboxes not being set from on to off?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
Is it possible to stop the execution of a method before completion in a sessionbean?
Where we can write Rmi registry in the code, without having to write it at the command prompt?