+1 vote
in JAVA by
Is ++ operator is thread-safe in Java?

1 Answer

0 votes
by

 No it's not a thread safe operator because its involve multiple instructions like reading a value, incriminating it and storing it back into memory which can be overlapped between multiple threads.

Related questions

0 votes
asked Apr 14, 2023 in JAVA by SakshiSharma
+1 vote
asked May 30, 2020 in JAVA by Robindeniel
...