What are synchronized methods and synchronized statements?

Answers were Sorted based on User's Feedback



What are synchronized methods and synchronized statements?..

Answer / 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

What are synchronized methods and synchronized statements?..

Answer / 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

More Advanced Java Interview Questions

what are RemoteObjects?

0 Answers   Wipro,


whats is mean by tiles in struts

2 Answers   SolutionNET,


difference between applicationserver and webserver

2 Answers   SolutionNET,


Difference Between java & javax

5 Answers   Sun Microsystems, Wipro,


Why JDBC has introduced

4 Answers  


How do you set security in applets?

1 Answers   IBM,


What is the difference between system.out ,system.err and system.in?

0 Answers  


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

0 Answers   Campus Interaction, HCL,


What is Connection Pooling?

1 Answers   Enteg Technologies, Infosys, Polaris,


How to do registration form using struts and hibernate?

1 Answers  


Explain ioc concept?

0 Answers  


Explain the life cycle of servlet?

3 Answers   Cognizant, HCL,


Categories