Robert

7%
Flag icon
When an object is immutable, it is obvious it can be reused safely,
Robert
Let's be a bit more careful/skeptical. An object can _appear_ immutable — it might not have setters and it might not be mutable to you — but that doesn't necessarily mean it doesn't have internal state (mutable private fields) which can cause it to not be reusable by multiple threads.
Effective Java
Rate this book
Clear rating
Open Preview