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

How messaging services are done, before release of JMS?

1830


What is scalable, portability in the view of J2EE?

2214


What event results from the clicking of a button?

903


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

867


What does module-relative mean?

810


How to deploy Jar, War files in J2EE?

2403


How can I avoid validating a form before data is entered?

756


What is Remote Server?

1903


What is the difference between RMI registry and OS Agent?

886


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

824


What is synchronization and why is it important?

777


What is chat area? Explain.

776


wahts is mean by dynavalidatorform in struts/

1810


What is a tasks priority and how is it used in scheduling?

793


What is a modular application? What does module-relative mean?

771