What are synchronized methods and synchronized statements?
Answers were Sorted based on User's Feedback
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 |
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 |
How many requests can a server fetch at a time?
Why are some of the class and element names counter-intuitive?
What is a class loader? What are the different class loaders used by jvm?
Is there a guarantee of uniqueness for entity beans?
Will the general public have access to the infobus apis?
What is source and listener?
What class is the top of the awt event hierarchy?
Name the eight primitive java types.
When a thread blocks on i/o?
What is local interface. How values will be passed?
How can I avoid validating a form before data is entered?
What are the steps to write p-to-p model application?