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 |
When a thread terminates its processing, it enters into what state?
What are the high-level thread states?
types of exceptions
In a multitiered application which tier is the browser in?
Why is string immutable in java?
How would you create a button with rounded edges?
On a computer that having single CPU, how multithreading concept can be achieved?
What is the difference between the session.update() method and the session.lock() method?
What are the steps involved in developing an RMI object?
What is the purpose of the wait() method?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
What is the use of Semaphore?