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

In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?

0 Answers  


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

0 Answers  


Explain RMI Architecture?

0 Answers  


When you will synchronize your code?

2 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  






Explain about thread synchronization inside a monitor?

0 Answers   Saksoft,


What are Benefits of Connection Pooling?

2 Answers  


What do you know about seam?

0 Answers  


diffrence between jsp and servelts.

6 Answers  


Is infobus easy to use?

0 Answers  


what is a portable component?

0 Answers  


What is RMI and what are the services in RMI?

0 Answers  


Categories