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
What is primitive array?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
What is garbage collector?
What are the basic concepts of OOPS in java?
What are the differences between wait() and sleep()?
Why string objects are immutable in java?
What is an empirical question?
What is the function of java?
What is replacefirst in java?
What is the use of predicate in java 8?
What are the two types of streams offered by java 8?
What is the purpose of the enableevents() method?
How can I right-justify a string?
What will happen to the exception object after exception handling?
What are adapter classes?