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 is waiting state? In what ways a thread can enter into waiting state?

2 Answers   Wipro,


How can I avoid validating a form before data is entered?

0 Answers  


What is Stream Tokenizer?

0 Answers   TCS,


whats is mean by tiles in struts

0 Answers   SolutionNET,


Define the remote object implementation?

0 Answers  






What is an abstract method?

0 Answers  


Can you give me a simple example of using the requiredif validator rule?

0 Answers  


difference between Abstract and Interface?

2 Answers   HCL, Infotech,


What is RRL?

1 Answers  


Which containers use a border layout as their default layout?

0 Answers  


diff mvc1 and mvc2 wahts is mean by servlet chaining?

1 Answers   SolutionNET,


How do you maintain a stateful session object across the session

2 Answers   HCL,


Categories