When you will synchronize your code?
Answers were Sorted based on User's Feedback
synchronize is used on objects that will be used by
multiple threads to provide thread safety. It is used so
that concurrent threads get valid access to data to perform
their actions
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / devarathnam c,kotagudibanda(po
Hi... If your code requires "Thread-safty" ,and to avoiding
deadlocks,when u want maintain dataintegrity.
| Is This Answer Correct ? | 0 Yes | 0 No |
Differences between applications and applets?
Which textcomponent method is used to set a textcomponent to the read-only state?
Do you think that java should have had pointers?
What is the difference between the ‘font’ and ‘fontmetrics’ class?
What is RMI architecture?
Explain ioc concept?
How to determine applet?s height and width?
life cycle of an applet?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
what is the use of State Factories?
In howmany ways a thread can be created?
what is the Scope of Final Keyword in Java?