Joe Soltzberg

9%
Flag icon
One detail worth mentioning is that the instance must keep track of whether it has been closed: the close method must record in a field that the object is no longer valid, and other methods must check this field and throw an IllegalStateException if they are called after the object has been closed.
Joe Soltzberg
Why is it like this? Seems like this could be a common error...
Effective Java
Rate this book
Clear rating
Open Preview