Thursday, 17 March 2016

Are immutable objects automatically thread-safe ?


Yes.
Since the state of the immutable objects can not be changed once they are created they are automatically synchronized / thread-safe.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.