What are synchronized methods and synchronized statements?

Answer Posted / sainaveen

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 methods are executed after lock is acieved on
class or object specified in the synchronized statement

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to deploy Jar, War files in J2EE?

2161


What is the map interface?

602


What do you mean by Socket Programming?

540


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

3437


What is the argument type of a programs main() method?

555






what is handle?

1840


what is a non-repeatable read?

1820


What restrictions are placed on the location of a package statement within a source code file?

607


How are commas used in the intialization and iteration parts of a for statement?

573


Why do I get a duplicate name error when loading a jar file?

538


the same information whether it will connect to the database or it will be used previous information?

562


whats is mean by connectionpooling

1558


Explain RMI Architecture?

597


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

591


How database connectivity in XML is achieved?

1761