Java™ Puzzlers: Traps, Pitfalls, and Corner Cases. 11 reviews. by Neal Gafter, Joshua Bloch. Publisher: Addison-Wesley Professional. Release Date: June. Java Puzzlers has ratings and 22 reviews. Paul said: If you program in Java, you _must_ read this book. It is a real eye-opener to the kind of traps. Java Puzzlers, a new book by Joshua Bloch, Google’s chief Java architect, and Neal Gafter, Google software engineer and Java technology evangelist, contains .

Author: Brarn Vokus
Country: Jamaica
Language: English (Spanish)
Genre: History
Published (Last): 3 May 2004
Pages: 84
PDF File Size: 9.76 Mb
ePub File Size: 10.70 Mb
ISBN: 431-7-47649-768-6
Downloads: 70481
Price: Free* [*Free Regsitration Required]
Uploader: Vosho

Java Puzzlers: Traps, Pitfalls, and Corner Cases by Joshua Bloch

Goodreads helps you keep track of books you want to read. Want to Read saving…. Want to Read Currently Reading Read. Refresh pjzzlers try again. Open Preview See a Problem? Thanks for telling us about the problem. Return to Book Page. Preview — Java Puzzlers by Joshua Bloch. This lively book reveals oddities of the Java programming language through entertaining and thought-provoking programming puzzles. Are you a code sleuth? Have you ever spent days chasing a bug caused by a trap or pitfall in Java or its libraries?

Do you like brainteasers? Then this is the book for you! In the tradition of Effective Java TMBloch and Gafter dive deep into the subtleties of the Java programming language and its core libraries.

Illustrated with visually stunning puzzlrrs illusions, Java TM Puzzlers features 95 diabolical puzzles that puzzzlers and entertain. Anyone with a working knowledge of Java will understand the puzzles, but even the most seasoned veteran will find them challenging.

Most of the puzzles take the form of a short program whose behavior isn’t what it seems. Can you figure out what it does? Puzzles are grouped loosely according to the features they use, and detailed solutions follow each puzzle. The solutions go well beyond a simple explanation of the program’s behavior–they show you how to avoid the underlying traps and pitfalls for good.

A handy catalog of traps and pitfalls at the back of the book provides a concise taxonomy for future reference. Solve these puzzles and you’ll never again fall prey to the counterintuitive or obscure behaviors that can fool even the most experienced programmers.

Java™ Puzzlers: Traps, Pitfalls, and Corner Cases

Paperbackpages. To see what your friends thought of this book, please sign up. To ask other readers questions about Java Puzzlersblochh sign up. Lists with This Book. May 19, Paul rated it it was amazing Shelves: 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. Jan 27, Christian Brumm rated it it was ok Jjava 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 jzva about Java, pick one of Joshua Bloch’s other excellent!

May 13, Armineh Nouri rated it it was amazing. Do not read this book if: Do read this book if: Apr 24, Stephen Mak rated it really liked it.

This review has been hidden because it contains spoilers. To view it, click here. This book is more like a brain teaser than real computer book. Some of the tips are useful but it’s more fun to read this book than functional from my point of view. Apr 11, Angel S rated it phzzlers liked it Shelves: This books has a lot of good joshuaa designed to make you think about how Java works.

Jan 30, 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 puzzpers features a collection of “puzz Full review also on my blog: Each chapter of the book features a collection of “puzzlers” centered around a particular section of the language examples include loops, strings, exceptions, classes, etc. Each “puzzler” is formulated where a puzzle typically in the form of a code snippet is given, and the reader is encouraged to try and predict what the output will be, or why the code is incorrect.

All-in-all there are 95 different puzzlers across the book, and they range from the fairly common “if you thought about it a bit you’d figure it out” to the extremely obscure “unless you were a Java language designer you’d never have any hope of figuring this out”.

The explanations also often include commentary to language designers ex: From an academic “curiosity” point of view the book is quite intriguing. As a fairly experienced Java developer I found myself surprised with the vast majority of the puzzlers.

The programming languages guy in me found this fascinating ex: Having said that, the book does reach a point where the puzzles and concepts hit upon by the puzzles are extremely obscure. For a typical Java developer you’ll almost never run into most of the tidbits in this book. That’s not to say that reading it isn’t useful, you’ll definitely learn a bit about the book, but if you’re looking to learn “how to write good Java code” this is not the book for you again, see Bloch’s other book for that.


Oct 14, Turaaa rated it liked it Shelves: You wont find here good job interview questionsand 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. 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. Feb 12, 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. Mar 04, Danilo Mutti rated it did not like it. Feb 27, Havan Agrawal rated it it was amazing. A book that’ll make every Java developer go of “What?

An expose of Java’s known and not so known dirty secrets. Oct 15, Rahul Mahindru rated it liked it. Apr 08, Katja rated it liked it Shelves: Not terribly useful or entertaining but the appendix is worth going through. Jun 05, Owen Lindsell rated it liked it. Mildy interesting, but not the kind of thing you’d want to use for interview questions. Will make you answer well all the Trivial-pursuit questions on Java Nov 09, Babji Prashanth rated it really liked it.

Mar 20, 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.

blkch Mar 15, Mills College Library added it. Tudor Andrei rated it it was amazing Nov 26, Lam rated it really liked it Jan 17, Dec 16, Saifuddin Merchant rated it it was amazing Shelves: It’s a definite must read Antaris86 rated it it was amazing Feb 14, Horatiu Dan rated it it was amazing Jan 18, Ferri rated it it was amazing Mar 04, Abdalla rated it really liked it Mar 20, Peter Wise rated it it was amazing Aug 14, Artem rated it really liked it Nov 30, Sujith S rated it it was amazing Sep 08, James rated it really liked it Mar 14,