Goodreads helps you keep track of books you want to read.
Start by marking “Java Puzzlers: Traps, Pitfalls, and Corner Cases” as Want to Read:
Java Puzzlers: Traps, Pitfalls, and Corner Cases
Enlarge cover
Rate this book
Clear rating
Open Preview

Java Puzzlers: Traps, Pitfalls, and Corner Cases

4.13  ·  Rating Details  ·  378 Ratings  ·  21 Reviews
""Every programming language has its quirks. This lively book reveals oddities of the Java programming language through entertaining and thought-provoking programming puzzles.""

--Guy Steele, Sun Fellow and coauthor of "The Java Language Specification"

""I laughed, I cried, I threw up (my hands in admiration).""

--Tim Peierls, president, Prior Artisans LLC, and member of the
Paperback, 282 pages
Published September 1st 2005 by Addison-Wesley Professional (first published June 24th 2005)
More Details... edit details

Friend Reviews

To see what your friends thought of this book, please sign up.

Reader Q&A

To ask other readers questions about Java Puzzlers, please sign up.

Be the first to ask a question about Java Puzzlers

Effective Java Programming Language Guide by Joshua BlochThinking in Java by Bruce EckelJava Concurrency in Practice by Brian GoetzJava Cookbook by Ian F. DarwinJava in a Nutshell by David Flanagan
11th out of 19 books — 10 voters

More lists with this book...

Community Reviews

(showing 1-30 of 1,028)
filter  |  sort: default (?)  |  Rating Details
Feb 14, 2013 Paul rated it it was amazing
Shelves: java
If you program in Java, you _must_ read this book. It is a real eye-opener to the kind of traps in your code you wouldn't even imagine could be there.

I can guarantee you have written at least one of these issues into your code. And QA never caught it. And it is out in the wild RIGHT NOW. Arrgh!!

More at
Adam Parkin
Jan 30, 2015 Adam Parkin rated it liked it
Full review also on my blog:

Java Puzzlers is not so much a book, but a collection of obscure corner cases in the Java programming language. The author (Joshua Bloch) is well known as the author of "Effective Java" which is widely regarded as the premier text for the language, and furthermore he is one the designers and authors of the Java Collections Framework. So to say the least, he knows his stuff.

Each chapter of the book features a collection of "puzz
Christian Brumm
Dec 18, 2011 Christian Brumm rated it it was ok
If you are a Java-Guru this might be fun to read. I found a lot of the puzzles more annoying than educational (especially the problems regarding unicode). In general, I found the puzzles to be overly esoteric. If you want to learn something about Java, pick one of Joshua Bloch's other (excellent!) books.
Stephen Mak
May 20, 2015 Stephen Mak rated it really liked it
This review has been hidden because it contains spoilers. To view it, click here.
Angel S
Apr 12, 2008 Angel S rated it really liked it
Shelves: computers
This books has a lot of good puzzles designed to make you think about how Java works.
Armineh Nouri
May 13, 2014 Armineh Nouri rated it it was amazing
Do not read this book if:
- you're looking to learn about the fundamentals of algorithm design and analysis.

Do read this book if:
- you'd like to know more about Java, the JVM, the intricacies of OOP, or the history of some cool visual illusions.
Kyi Aung
Mar 20, 2014 Kyi Aung rated it it was amazing
This book needs no introduction. A very fun and insightful read for those who want to master Java.
Oct 14, 2010 Turaaa rated it liked it
Shelves: software
You wont find here good job interview questions , and you wont learn practical things about Java.
Most of the puzzles here are about cases you will probably never encounter. But it is a fun read that will show you that there are many things you don't know about Java .
Also, this book can make you more perceptive about details in code you usually don't notice.
Väinö Leppänen
Jun 01, 2013 Väinö Leppänen rated it really liked it
I had no idea about all the things that I didn't know :)
Java is a complicated language and after reading this book you'll think so too. I have also read Joshua Bloch's Effective Java and it's a good companion book for this one; they're book very good and worth the a read (or two).
Oct 11, 2014 Andrey rated it it was ok
Shelves: technical
Most of the problems won't appear in practice if you are following best practices and keep code clean and concise. Book is fun but will be mostly useless for experienced Java programmer.
Havan Agrawal
Apr 18, 2016 Havan Agrawal rated it it was amazing
A book that'll make every Java developer go of "What?", "But..", "How the hell...". An expose of Java's known (and not so known) dirty secrets.
Jun 26, 2013 John rated it really liked it
Great way to learn the corner cases of the Java language up to Java 5. Java 6 and 7 editions would make interesting reads, when available.
Will make you answer well all the Trivial-pursuit questions on Java... not a really practical book, but very entertaining!
Owen Lindsell
Mar 04, 2012 Owen Lindsell rated it liked it
For nerds only. Mildy interesting, but not the kind of thing you'd want to use for interview questions.
Apr 18, 2011 Katja rated it liked it
Shelves: non-fiction, en
Not terribly useful or entertaining but the appendix is worth going through.
Feb 22, 2016 Amit rated it really liked it
Book has old code but still its worth the price....
Danilo Mutti
Mar 04, 2013 Danilo Mutti rated it did not like it
boring boring boring and did I mention boring?
Saifuddin Merchant
Dec 16, 2012 Saifuddin Merchant rated it it was amazing
Shelves: recommend
It's a definite must read ...
Babji Prashanth
Nov 09, 2009 Babji Prashanth rated it really liked it
very good.
Mills College Library
005.133 B6513 2005
Eldar Necefov
Imke marked it as to-read
Jun 18, 2016
Modiga Phemelo
Modiga Phemelo marked it as to-read
Jun 16, 2016
Mbukowicz marked it as to-read
Jun 14, 2016
Paunova Simona
Paunova Simona marked it as to-read
Jun 12, 2016
Dejan marked it as to-read
Jun 12, 2016
Ivana Bozhinova
Ivana Bozhinova marked it as to-read
Jun 12, 2016
Roman Smirnov
Roman Smirnov marked it as to-read
Jun 11, 2016
Rom added it
Jun 08, 2016
« previous 1 3 4 5 6 7 8 9 34 35 next »
There are no discussion topics on this book yet. Be the first to start one »
  • Java Concurrency in Practice
  • Java Generics and Collections
  • Concurrent Programming in Java: Design Principles and Pattern
  • Java Performance
  • The Well-Grounded Java Developer: Vital techniques of Java 7 and polyglot programming
  • Thinking in Java
  • SCJP Sun Certified Programmer for Java 6 Study Guide
  • Programming in Scala
  • Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions
  • Core Java, Volume II--Advanced Features
  • The Productive Programmer
  • Refactoring to Patterns
  • Patterns of Enterprise Application Architecture
  • RESTful Web Services
  • Seven Languages in Seven Weeks
  • Test Driven Development: By Example
  • The UNIX Programming Environment
  • Agile Software Development, Principles, Patterns, and Practices

Goodreads is hiring!

If you like books and love to build cool products, we may be looking for you.
Learn more »

Share This Book

No trivia or quizzes yet. Add some now »