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

Give a practical example of singleton class usage?

583


Is java an ide?

516


What is the difference between applet and application?

540


What is the primitive type byte?

569


Can a lock be acquired on a class in java programming?

529






Can a final variable be null?

541


What is incompatible types in java?

531


Why do we override tostring method in java?

492


Can we inherit a class with private constructor?

564


How to perform merge sort in java?

579


What are the basic concepts of OOPS in java?

564


What is unicode in java?

498


How do you include a string in java?

517


What are the data types supported by java?

542


Can an abstract class be a final class?

527