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 are the elements of a cardlayout organized?
difference. between List and Set?
2 Answers Campus Interaction, HCL, Infotech,
What is checkpoint? How to create checkpoints in our java projects?
What is the difference between RMI and Corba?
What is synchronization?
What happens when we invoke a thread?s interrupt method while it is in sleeping or waiting condition?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
the same information whether it will connect to the database or it will be used previous information?
Are enterprise beans allowed to use thread.sleep()?
what is singleton class? where it mainly used in the projects?
Can I run seam outside of jboss as?
What are skeletons and stubs and how they are generated?