Cover of Java Puzzlers: Traps, Pitfalls, and Corner Cases

Java Puzzlers: Traps, Pitfalls, and Corner Cases

""Every programming language has its quirks. This lively book reveals oddities of the Java programming language through entertaining and thought-provoking programming puzzles.""

Read more

—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 JSR 166 Expert Group

How well do you really know Java? 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 ," Bloch and Gafter dive deep into the subtleties of the Java programming language and its core libraries. Illustrated with visually stunning optical illusions, "Java Puzzlers" features 95 diabolical puzzles that educate 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.

"

Subject
science
Audience
adult
Length
medium · 282 pages

Click a tag to see books like this one that share it.

Read it? Sign in to help tag it.

Liked Java Puzzlers: Traps, Pitfalls, and Corner Cases? Here’s where I’d start.

These suit anyone who liked Java Puzzlers: Traps, Pitfalls, and Corner Cases. Sign in and mark a few books for picks shaped around your own taste.

  1. Java Generics and Collections Shares Java, programming, tech
  2. Thinking in Java Shares Java, programming, computer science
  3. Core Java, Volume II--Advanced Features Shares Java, programming, computer science
  4. The Well-Grounded Java Developer: Vital techniques of Java 7 and polyglot programming Shares Java, programming, tech

“People who read Java Puzzlers: Traps, Pitfalls, and Corner Cases tend to reach for these next.”

  1. SCJP Sun Certified Programmer for Java 6 Study Guide
  2. Programming in Scala
  3. Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions
  4. Patterns of Enterprise Application Architecture

“If you want more of the same (science about technology), start with these.”

  1. The UNIX Programming Environment
  2. Database System Concepts
  3. Effective C# (Covers C# 4.0): 50 Specific Ways to Improve Your C# (Effective Software Development Series)
  4. Writing Secure Code

“If it was the Java that hooked you, try one of these.”

  1. Java 8 Lambdas: Pragmatic Functional Programming
  2. Java 8 in Action
  3. Spring in Action
  4. Java SE 8 for the Really Impatient

“These start from a similar idea, even if they go somewhere else with it.”

  1. C++ For Dummies
  2. C++ Without Fear: A Beginner's Guide That Makes You Feel Smart
  3. Java Cookbook
  4. The Linux Programming Interface: A Linux and UNIX System Programming Handbook