top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How can we achieve thread safety in Java?

0 votes
462 views
How can we achieve thread safety in Java?
posted Sep 22, 2017 by Pooja Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

There are several ways to achieve thread safety in java – synchronization, atomic concurrent classes, implementing concurrent Lock interface, using volatile keyword, using immutable classes and Thread safe classes.

answer Sep 25, 2017 by Neeraj Kumar
...