
Java puzzlers
Joshua Bloch · 2005
Programming and computer science › Programming classics and Java
#2,193 most recommended
Hacker News
21
mentions by 20 people · top 16% of 15,732 books
Open Library
—
No ratings yet
4 want to read
Wikipedia
—
No article yet
About the book
Java Puzzlers is a collection of over 100 short programs, written by Joshua Bloch and Neal Gafter, that behave differently from what a reader would expect. It covers the Java language and its core platform, including data types, expressions, classes and overriding, exceptions, threads, and network programming, and it is grouped by the platform features each puzzle exercises. Each puzzle asks the reader to predict a program's output, then explain the result, and the solutions trace the surprise to specific language rules and corner cases. Most solutions end with a stated moral, a practical rule for avoiding the trap the puzzle demonstrates. The book's central claim is that these traps are predictable and learnable, so knowing the language's exact semantics leads to safer everyday code.
Written by Claude from what it knows of this book.
What Hacker News says 60% recommend · 0% critical
In the commenters’ own words
Here's a few I've really liked that have a broader subject matter than only what you asked for. I figure that if you like to read you'd like these books…
I've done a fair bit of work interfacing memory managed languages like Java & Python with "unsafe" native code and found that this problem actually crops up…
What Open Library readers say
No Open Library reader has rated it yet.
- 4 want to read
- 0 reading
- 0 have read
What critics say, via Wikipedia
No Wikipedia article about this book yet, so no critics to quote.
Reddit communities — coming later
The threads it came up in
Details
- First published
- 2005
- ISBN
- 9780321336781
- Editions known
- 2 at Open Library
- Open Library
- OL6223302W
JavaJava (Computer program language)Network programming
Read next: its neighbours on the mosaic
Effective JavaJoshua Bloch · 2001 · recommended by 172 people · 4 people recommended both
Java Concurrency in PracticeBrian Goetz · 2006 · recommended by 53 people · 2 people recommended both
Programming PearlsJon Bentley · 1999 · recommended by 158 people · 3 people recommended both
C Traps and PitfallsAndrew Koenig · 1989 · recommended by 19 people · similar by subject and what people say about it
Expert C programming!Peter Van der Linden · 1994 · recommended by 88 people · similar by subject and what people say about it
Hacker's DelightHenry S. Warren Jr. · 2002 · recommended by 105 people · similar by subject and what people say about it
The Practice of ProgrammingBrian W. Kernighan · 1999 · recommended by 90 people · similar by subject and what people say about it
Beautiful CodeAndy Oram · 2007 · recommended by 48 people · similar by subject and what people say about it
The (new) turing omnibusA.K. Dewdney · 1993 · recommended by 32 people · similar by subject and what people say about it
Programming interviews exposedJohn Mongan · 2007 · recommended by 29 people · similar by subject and what people say about it
Thinking in JavaBruce Eckel · 1997 · recommended by 28 people · similar by subject and what people say about it
Head first JavaKathy Sierra · 2003 · recommended by 27 people · similar by subject and what people say about it
J for C Programmersrecommended by 17 people · similar by subject and what people say about it
Masterminds of ProgrammingFederico Biancuzzi · 2008 · recommended by 14 people · similar by subject and what people say about it
Algorithms in a nutshellGeorge T. Heineman · 2008 · recommended by 12 people · similar by subject and what people say about it
The C puzzle bookAlan R. Feuer · 1982 · recommended by 10 people · similar by subject and what people say about it
97 Things Every Programmer Should KnowKevlin Henney · 2010 · recommended by 6 people · similar by subject and what people say about it
Art of Programming - Volume 3 - Answers to ExercisesDonald Knuth · recommended by 6 people · similar by subject and what people say about it
Obfuscated C and other mysteriesDon Libes · 1993 · recommended by 4 people · similar by subject and what people say about it
JavaScriptDouglas Crockford · 2008 · recommended by 72 people · similar by subject and what people say about it
Mazes for programmersJamis Buck · 2015 · recommended by 19 people · similar by subject and what people say about it
The art of computer programmingDonald Knuth · 1968 · recommended by 336 people · similar by subject and what people say about it
A little Java, a few patternsMatthias Felleisen · 1997 · recommended by 7 people · similar by subject and what people say about it
Why's (Poignant) Guide to RubyWhy The Lucky Stiff · 2005 · recommended by 85 people · similar by subject and what people say about it