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
Is string pool garbage collected?
Are floats faster than doubles?
How to perform quicksort in java?
Can I declare a class as private?
How do you compare two objects?
What do you understand by overloading and overriding in java?
What is method reference?
Is java hashset ordered?
What is the vector class in java programming?
What is callable java?
Which is the best approach for creating thread ?
What types of index data structures can you have in java?
Difference between start() and run() method of thread class?
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
What is the final method?