2 of 2 people found the following review helpful
Read for fun, not to be a better programmer,
Verified Purchase(What is this?)
This review is from: Java Puzzlers: Traps, Pitfalls, and Corner Cases (Paperback)
Josh Bloch/Neal Gafter have a talent for giving concise coding wisdom with rock solid examples, this book is no different to Effective Java in that respect.
However, those expecting to hear coding philosophies and common pitfalls to avoid are not going to find them here. This book is about exactly what is says on the cover: corner cases. You may never encounter any of these issues in your entire Java career.
That said, the puzzles are insanely difficult and I found them very entertaining to read. There are possibly 2 or 3 puzzles in the entire book that are "cheap tricks", but the rest are all to do with subtleties in the language itself. If I had any criticism it would be that the puzzles go straight from puzzle to explanation without explicitly showing the output as an intermediary step... the author suggests that you run the programs and try to reach an explanation yourself. I tend to read books when travelling or when taking a break from the computer screen, so this was not practical for me.
If you haven't read Effective Java, I'd strongly recommend you read it first. I'd recommend this book to those that like a challenge or enjoy reading about Java subtleties.