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 |
what is difference between object state and behaviour?
What is multithread synchronizing ?
How would you detect a keypress in a jcombobox?
What is prototype?
What modifiers may be used with an inner class that is a member of an outer class?
What is a modular application? What does module-relative mean?
What is abstract schema?
which book is better for jdbc ,servlets and jsp
how to use debug in my elipse to solve problems that exist in my project
What are Benefits of Connection Pooling?
what is a dirty read?
Should synchronization primitives be used on bean methods?