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

Does Java pass arguments by value or reference?

5 Answers   HeadStrong,


explain the flow of struts?

2 Answers   SolutionNET,


What are the implicit objects?

2 Answers   HCL,


what are the activation groupworks?

1 Answers  


What is the difference between system.out ,system.err and system.in?

1 Answers  


Why does the tag url-encode javascript and mailto links?

1 Answers  


Which component handles cluster communication in jboss?

1 Answers  


Hello, I'm java developer. My skill is programming with java,jsp, struts, struts2+spring, hibernate, eclipse, tomcat, mysql,Oracle,Middlegen and other open source technology. I'm interest work any web base project that use my ability above. The thing is that I have never got any chance to work in this field though i am very much comfort with my skills. So if any body want me then i will happily join you. Also I have also some of my friends if you. If you interest to outsource any project to me then also you are welcome. you can reach me by email at me4bangalore@yahoo.in

4 Answers  


How many JSP scripting elements and what are they?

4 Answers   TCS,


what are design patterns in java?give with example?

2 Answers   HCL, iGate,


How would you reatach detached objects to a session when the same object has already been loaded into the session?

1 Answers  


Explain the difference between object state and behavior?

1 Answers  


Categories