Java and Immutability Part I
Java and Immutability Part II
So what did I learn? That an immutable object is really just a read only object. But when it comes to reference variables, read only is a little tougher to achieve than one might think.
Source code is included. Please let me know if I screwed anything up. :)
No comments:
Post a Comment