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

Can I have an action without a form?

586


Name three subclasses of the component class?

602


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

559


What is a session? Can you share a session object between different theads?

544


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

1727






wahts is mean by dynavalidatorform in struts/

1557


Is “abc” a primitive value?

606


What is aop(assepct oriented programing)?

571


What is table mutation and how do you avoid it?

1904


Do I need to import javlang package any time? Why ?

616


Is the session factory thread safe?

661


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

1468


What is Remote Server?

1677


Why do threads block on i/o?

670


What are the benefits of detached objects?

577