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

Which textcomponent method is used to set a textcomponent to the read-only state?

638


whats is statement and procedure

1595


What is chat area? Explain.

560


What method is invoked to cause an object to begin executing as a separate thread?

572


what is Activation Instantinator?

1917






AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

1646


Is a class a subclass of itself?

592


What restrictions are placed on the location of a package statement within a source code file?

622


How can I scroll through list of pages like the search results in google?

573


When is the best time to validate input?

612


What is a class loader?

591


Difference between swing and awt?

608


When a thread blocks on i/o, what state does it enter?

578


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

604


Will the general public have access to the infobus apis?

532