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

Give me simple example of hibernate caching and explain the details of caching????? thanks in adv.

1 Answers  


What is Stream and Types?

2 Answers   Patni,


To identify IDL language what mapping mechanism is used?

0 Answers  


difference between applicationserver and webserver

4 Answers   SolutionNET,


What is the relationship between local interfaces and container-managed relationships?

0 Answers  






What is the difference between the font and fontmetrics classes?

0 Answers  


why we use main in java?

4 Answers  


Describe responsibilities of Activator?

0 Answers  


How would you detect a keypress in a jcombobox?

0 Answers  


Is it possible to stop the execution of a method before completion in a sessionbean?

0 Answers  


what is default length of textfield ?

1 Answers  


What is Remote Server?

0 Answers   TCS,


Categories