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

What restrictions are placed on the values of each case of a switch statement?

756


What is the form of storage space in java?

1984


how do you Handle Front End Application data against DB with example?

1738


How are the elements of a borderlayout organized?

852


Why doesn’t the focus feature on the tag work in every circumstance?

790


difference between  ejb,struts,hibernate,spring and jsp

2581


What is the difference between a menuitem and a checkboxmenuitem?

782


Which javutil classes and interfaces support event handling?

811


What are the types of scaling?

815


What is message driven beam?

804


Is infobus easy to use?

811


Describe responsibilities of Activator?

1880


why static class in java

1505


To identify IDL language what mapping mechanism is used?

3661


how i secure my site with the https protocol.what are the steps?

1984