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 |
Describe activation process?
What is waiting state? In what ways a thread can enter into waiting state?
important features of java which differenciate it from c++
Explain the different types of memory used by jvm?
If we opened windows notepad 4 times, does it starts 4 processes or 4 threads?
What restrictions are placed on the location of a package statement within a source code file?
What invokes a thread?s run() method?
Howmany interfaces are used in RMI?
wahts is mean by dynavalidatorform in struts/
What are the different approaches to represent an inheritance hierarchy?
what is singleton class? where it mainly used in the projects?
what is the use of Object Factories?