When you will synchronize your code?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Brief description about local interfaces?

931


Explain how will the struts know which action class to call when you submit a form?

731


How are the elements of a borderlayout organized?

854


Is the session factory thread safe?

930


What is the map interface?

863


What is the difference between the session.get() method and the session.load() method?

833


What are various types of class loaders used by jvm?

737


what are getters and setters in Java with examples?

1511


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

997


What is in-memory replication?

790


What do you need to set-up a cluster with jboss?

821


What is an abstract method?

810


we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?

2143


What class is the top of the awt event hierarchy?

846


Explain the different types of memory used by jvm?

881