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

What value does read() return when it has reached the end of a file?

0 Answers  


What are the different class loaders used by jvm?

0 Answers  


can a static method be overridden

41 Answers   IBM, SolutionNET,


Why a client should be multithreading? Explain.

0 Answers  


What is a sessionfactory? Is it a thread-safe object?

0 Answers  






What class is the top of the awt event hierarchy?

0 Answers  


diff between jsp include directive and jsp action include?

2 Answers   SolutionNET,


Why won’t the jvm terminate when I close all the application windows?

0 Answers  


What are the types of scaling?

0 Answers  


whats is mean by jndi

1 Answers   SolutionNET,


What is a class loader?

0 Answers  


Difference between loadclass and class.forname?

0 Answers  


Categories