DeepRead
Cover of Java puzzlers

Java puzzlers

Joshua Bloch · 2005

Programming and computer science › Programming classics and Java

#2,193 most recommended

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

051020082015202020252018 peak · 6
This bookAverage book in Programming classics and Java

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…

    jing · 2010 · in Ask HN: Good 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…

    amit-bansil · 2015 · in My favorite bug: segfaults in Java

What Open Library readers say

No Open Library reader has rated it yet.

  • 4 want to read
  • 0 reading
  • 0 have read

Open Library’s page for the book

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

Explore in the mosaic

Read next: its neighbours on the mosaic

  • Effective Java
    Joshua Bloch · 2001 · recommended by 172 people · 4 people recommended both
  • Java Concurrency in Practice
    Brian Goetz · 2006 · recommended by 53 people · 2 people recommended both
  • Programming Pearls
    Jon Bentley · 1999 · recommended by 158 people · 3 people recommended both
  • C Traps and Pitfalls
    Andrew 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 Delight
    Henry S. Warren Jr. · 2002 · recommended by 105 people · similar by subject and what people say about it
  • The Practice of Programming
    Brian W. Kernighan · 1999 · recommended by 90 people · similar by subject and what people say about it
  • Beautiful Code
    Andy Oram · 2007 · recommended by 48 people · similar by subject and what people say about it
  • The (new) turing omnibus
    A.K. Dewdney · 1993 · recommended by 32 people · similar by subject and what people say about it
  • Programming interviews exposed
    John Mongan · 2007 · recommended by 29 people · similar by subject and what people say about it
  • Thinking in Java
    Bruce Eckel · 1997 · recommended by 28 people · similar by subject and what people say about it
  • Head first Java
    Kathy Sierra · 2003 · recommended by 27 people · similar by subject and what people say about it
  • J for C Programmers
    recommended by 17 people · similar by subject and what people say about it
  • Masterminds of Programming
    Federico Biancuzzi · 2008 · recommended by 14 people · similar by subject and what people say about it
  • Algorithms in a nutshell
    George T. Heineman · 2008 · recommended by 12 people · similar by subject and what people say about it
  • The C puzzle book
    Alan R. Feuer · 1982 · recommended by 10 people · similar by subject and what people say about it
  • 97 Things Every Programmer Should Know
    Kevlin Henney · 2010 · recommended by 6 people · similar by subject and what people say about it
  • Art of Programming - Volume 3 - Answers to Exercises
    Donald Knuth · recommended by 6 people · similar by subject and what people say about it
  • Obfuscated C and other mysteries
    Don Libes · 1993 · recommended by 4 people · similar by subject and what people say about it
  • JavaScript
    Douglas Crockford · 2008 · recommended by 72 people · similar by subject and what people say about it
  • Mazes for programmers
    Jamis Buck · 2015 · recommended by 19 people · similar by subject and what people say about it
  • The art of computer programming
    Donald Knuth · 1968 · recommended by 336 people · similar by subject and what people say about it
  • A little Java, a few patterns
    Matthias Felleisen · 1997 · recommended by 7 people · similar by subject and what people say about it
  • Why's (Poignant) Guide to Ruby
    Why The Lucky Stiff · 2005 · recommended by 85 people · similar by subject and what people say about it