How to make a method thread safe without using synchronized
keyword?
Answer Posted / rajib
by implementing SingleThreadModel interface.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What access modifiers can be used for methods?
How do you add an element to a set in java?
What is getclass () getname () in java?
difference between byte stream class and character stream class?
Give an example of call be reference significance.
If system.exit (0); is written at the end of the try block, will the finally block still execute?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
Is java a digit method?
What is stringwriter?
What are the properties of thread?
What is matcher in java?
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
Can we overload the methods by making them static?
What are the two environment variables that must be set in order to run any java programs?
If goto and const is reserve words than why it is not work in java?