When you will synchronize your code?

Answers were Sorted based on User's Feedback



When you will synchronize your code?..

Answer / ranganathkini

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

When you will synchronize your code?..

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

Post New Answer

More Advanced Java Interview Questions

Describe activation process?

0 Answers  


What is waiting state? In what ways a thread can enter into waiting state?

2 Answers   Wipro,


important features of java which differenciate it from c++

3 Answers  


Explain the different types of memory used by jvm?

0 Answers  


If we opened windows notepad 4 times, does it starts 4 processes or 4 threads?

1 Answers  


What restrictions are placed on the location of a package statement within a source code file?

0 Answers  


What invokes a thread?s run() method?

2 Answers  


Howmany interfaces are used in RMI?

2 Answers  


wahts is mean by dynavalidatorform in struts/

1 Answers   SolutionNET,


What are the different approaches to represent an inheritance hierarchy?

0 Answers  


what is singleton class? where it mainly used in the projects?

5 Answers   Satyam, Wipro,


what is the use of Object Factories?

1 Answers  


Categories