How to make a method thread safe without using synchronized
keyword?

Answer Posted / aravinda reddy

Oneway of doing By making all the variables and methods in
the class as final.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bytes are a float?

736


What is r * in math?

761


What is hashset in java?

813


how to create multithreaded program? Explain different ways of using thread? : Java thread

770


What is the difference between heap memory and stack memory?

862


What is the java virtual machine?

876


What are kinds of processors?

776


Which non-unicode letter characters may be used as the first character of an identifier?

830


How do you declare an empty string?

878


How is Object Oriented Programming different from Procedure Oriented Programming?

846


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

788


What is core java used for?

785


Is null function in java?

809


Explain the importance of finalize() method.

782


What are mutable classes?

758