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 |
What value does read() return when it has reached the end of a file?
What are the different class loaders used by jvm?
can a static method be overridden
Why a client should be multithreading? Explain.
What is a sessionfactory? Is it a thread-safe object?
What class is the top of the awt event hierarchy?
diff between jsp include directive and jsp action include?
Why won’t the jvm terminate when I close all the application windows?
What are the types of scaling?
whats is mean by jndi
What is a class loader?
Difference between loadclass and class.forname?