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

What is null object in java?

793


Is java a super set of javascript?

845


What are the classes of java?

741


Can an abstract class be a final class?

737


Explain java coding standards for methods?

813


How do you check if an arraylist is not empty?

802


What is treemap in java?

737


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

754


Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?

904


What does I ++ mean?

825


What is the use of default method in interface in java? Explain

764


What is sortedset in java?

787


Difference between error and exception

5488


What is charat ()?

732


How many types of parsers are there?

793