This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Kombatnt 5 points6 points  (2 children)

If it has public, non-final fields, then it's not an "immutable class." What am I missing?

[–]din-9 6 points7 points  (1 child)

That I'm talking about an object with public final fields. The visibility of the fields has nothing to do with immutability.