Skip to content

Java Puzzlers: Traps, Pitfalls, and Corner Cases
Stock Photo: Cover May Be Different

Java Puzzlers: Traps, Pitfalls, and Corner Cases Paperback - 2005

by Joshua Bloch; Neal Gafter


From the publisher

"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(TM) 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(TM), Bloch and Gafter dive deep into the subtleties of the Java programming language and its core libraries. Illustrated with visually stunning optical illusions, Java(TM) 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.

From the rear cover

"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(TM) 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(TM), Bloch and Gafter dive deep into the subtleties of the Java programming language and its core libraries. Illustrated with visually stunning optical illusions, Java(TM) 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.

Details

  • Title Java Puzzlers: Traps, Pitfalls, and Corner Cases
  • Author Joshua Bloch; Neal Gafter
  • Binding Paperback
  • Edition International Ed
  • Pages 312
  • Volumes 1
  • Language ENG
  • Publisher Addison-Wesley Professional, U.S.A.
  • Date June 24, 2005
  • Illustrated Yes
  • ISBN 9780321336781 / 032133678X
  • Weight 1.33 lbs (0.60 kg)
  • Dimensions 9.22 x 7.4 x 0.74 in (23.42 x 18.80 x 1.88 cm)
  • Library of Congress subjects Java (Computer program language)
  • Library of Congress Catalog Number 2005015278
  • Dewey Decimal Code 005.133

About the author

Joshua Bloch is a principal engineer at Google and a Jolt Award-winner. He was previously a distinguished engineer at Sun Microsystems and a senior systems designer at Transarc. Josh led the design and implementation of numerous Java platform features, including JDK 5.0 language enhancements and the award-winning Java Collections Framework. He holds a Ph.D. in computer science from Carnegie Mellon University.

Neal Gafter is a software engineer and Java evangelist at Google. He was previously a senior staff engineer at Sun Microsystems, where he led the development of the Java compiler and implemented the Java language features in releases 1.4 through 5.0. Neal was a member of the C++ Standards Committee and led the development of C and C++ compilers at Sun Microsystems, Microtec Research, and Texas Instruments. He holds a Ph.D. in computer science from the University of Rochester.

Back to Top

More Copies for Sale

Customers who searched for ISBN 9780321336781 might also be interested in this item:
International Edition
Intl. Ed.

Java Puzzlers: Traps, Pitfalls, and Corner Cases 

by Bloch

  • New
  • Paperback
Note
International Edition
Condition
Brand New
Binding
Paperback
Quantity Available
2
Seller
Fort Worth, Texas, United States
Seller rating:
This seller has earned a 4 of 5 Stars rating from Biblio customers.
Item Price
$5.59
$12.99 shipping to USA

Show Details

Description:
Pearson. Softcover. Brand New. “International Edition” - ISBN number and front cover may be different in rare cases but CONTENTS are same as the US edition. We ship fast via USPS/FedEx/DHL/Aramex Express Services. No shipping to PO BOX, APO, FPO addresses. Kindly provide day time phone number in order to ensure smooth delivery. Printed in black & white in English language. Territorial restrictions may be printed on the book. We may ship from Asian regions for inventory purpose. 100% Customer satisfaction guaranteed!" We use Fast Shipping via DHL/FEDEX/UPS
Item Price
$5.59
$12.99 shipping to USA
Java Puzzlers: Traps, Pitfalls, and Corner Cases

Java Puzzlers: Traps, Pitfalls, and Corner Cases

by Bloch, Joshua; Gafter, Neal

  • Used
  • good
  • Paperback
Condition
Used - Good
Binding
Paperback
ISBN 10 / ISBN 13
9780321336781 / 032133678X
Quantity Available
4
Seller
Seattle, Washington, United States
Seller rating:
This seller has earned a 4 of 5 Stars rating from Biblio customers.
Item Price
$7.02
FREE shipping to USA

Show Details

Description:
Addison-Wesley Professional, 2005. Paperback. Good. Pages can have notes/highlighting. Spine may show signs of wear. ~ ThriftBooks: Read More, Spend Less.Dust jacket quality is not guaranteed.
Item Price
$7.02
FREE shipping to USA
Java Puzzlers : Traps, Pitfalls, and Corner Cases

Java Puzzlers : Traps, Pitfalls, and Corner Cases

by Joshua Bloch; Neal Gafter

  • Used
  • very good
  • Paperback
Condition
Used - Very Good
Binding
Paperback
ISBN 10 / ISBN 13
9780321336781 / 032133678X
Quantity Available
1
Seller
Seattle, Washington, United States
Seller rating:
This seller has earned a 4 of 5 Stars rating from Biblio customers.
Item Price
$7.02
FREE shipping to USA

Show Details

Description:
Addison Wesley Professional, 2005. Paperback. Very Good. May have limited writing in cover pages. Pages are unmarked. ~ ThriftBooks: Read More, Spend Less.Dust jacket quality is not guaranteed.
Item Price
$7.02
FREE shipping to USA
Java Puzzlers: Traps, Pitfalls, and Corner Cases

Java Puzzlers: Traps, Pitfalls, and Corner Cases

by Bloch, Joshua; Gafter, Neal

  • Used
  • Acceptable
  • Paperback
Condition
Used - Acceptable
Binding
Paperback
ISBN 10 / ISBN 13
9780321336781 / 032133678X
Quantity Available
1
Seller
Seattle, Washington, United States
Seller rating:
This seller has earned a 4 of 5 Stars rating from Biblio customers.
Item Price
$7.02
FREE shipping to USA

Show Details

Description:
Addison-Wesley Professional, 2005. Paperback. Acceptable. Readable copy. Pages may have considerable notes/highlighting. ~ ThriftBooks: Read More, Spend Less.Dust jacket quality is not guaranteed.
Item Price
$7.02
FREE shipping to USA
Java Puzzlers : Traps, Pitfalls, and Corner Cases
Stock Photo: Cover May Be Different

Java Puzzlers : Traps, Pitfalls, and Corner Cases

by Bloch, Joshua, Gafter, Neal

  • Used
Condition
Used - Good
ISBN 10 / ISBN 13
9780321336781 / 032133678x
Quantity Available
1
Seller
Mishawaka, Indiana, United States
Seller rating:
This seller has earned a 5 of 5 Stars rating from Biblio customers.
Item Price
$7.74
FREE shipping to USA

Show Details

Description:
Pearson Education, Limited. Used - Good. Former library book; may include library markings. Used book that is in clean, average condition without any missing pages.
Item Price
$7.74
FREE shipping to USA
Java Puzzlers: Traps, Pitfalls, and Corner Cases
Stock Photo: Cover May Be Different

Java Puzzlers: Traps, Pitfalls, and Corner Cases

by Bloch, Joshua

  • Used
  • Paperback
Condition
Used: Good
Edition
1
Binding
Paperback
ISBN 10 / ISBN 13
9780321336781 / 032133678X
Quantity Available
1
Seller
HOUSTON, Texas, United States
Seller rating:
This seller has earned a 4 of 5 Stars rating from Biblio customers.
Item Price
$10.39
FREE shipping to USA

Show Details

Description:
Addison-Wesley Professional, 2005-06-24. 1. paperback. Used: Good.
Item Price
$10.39
FREE shipping to USA
Java Puzzlers : Traps, Pitfalls, and Corner Cases
Stock Photo: Cover May Be Different

Java Puzzlers : Traps, Pitfalls, and Corner Cases

by Bloch, Joshua, Gafter, Neal

  • Used
Condition
Used - Good
ISBN 10 / ISBN 13
9780321336781 / 032133678x
Quantity Available
1
Seller
Reno, Nevada, United States
Seller rating:
This seller has earned a 5 of 5 Stars rating from Biblio customers.
Item Price
$10.66
FREE shipping to USA

Show Details

Description:
Pearson Education, Limited. Used - Good. Used book that is in clean, average condition without any missing pages.
Item Price
$10.66
FREE shipping to USA
Java Puzzlers : Traps, Pitfalls, and Corner Cases
Stock Photo: Cover May Be Different

Java Puzzlers : Traps, Pitfalls, and Corner Cases

by Bloch, Joshua, Gafter, Neal

  • Used
Condition
Used - Very Good
ISBN 10 / ISBN 13
9780321336781 / 032133678x
Quantity Available
1
Seller
Reno, Nevada, United States
Seller rating:
This seller has earned a 5 of 5 Stars rating from Biblio customers.
Item Price
$10.66
FREE shipping to USA

Show Details

Description:
Pearson Education, Limited. Used - Very Good. Used book that is in excellent condition. May show signs of wear or have minor defects.
Item Price
$10.66
FREE shipping to USA
Java Puzzlers: Traps, Pitfalls, and Corner Cases
Stock Photo: Cover May Be Different

Java Puzzlers: Traps, Pitfalls, and Corner Cases

by Joshua Bloch,Neal Gafter

  • Used
  • Paperback
Condition
Used Good
Binding
Paperback
ISBN 10 / ISBN 13
9780321336781 / 032133678X
Quantity Available
1
Seller
Pella, Iowa, United States
Seller rating:
This seller has earned a 4 of 5 Stars rating from Biblio customers.
Item Price
$17.22
$7.50 shipping to USA

Show Details

Description:
Addison-Wesley Professional, June 2005. Trade Paperback . Used Good/yes .
Item Price
$17.22
$7.50 shipping to USA
Javaâ„¢ Puzzlers: Traps, Pitfalls, and Corner Cases
Stock Photo: Cover May Be Different

Javaâ„¢ Puzzlers: Traps, Pitfalls, and Corner Cases

by Joshua Bloch, Neal Gafter

  • Used
  • good
Condition
Used - Good
ISBN 10 / ISBN 13
9780321336781 / 032133678X
Quantity Available
1
Seller
Blacksburg, Virginia, United States
Seller rating:
This seller has earned a 5 of 5 Stars rating from Biblio customers.
Item Price
$17.74
$4.25 shipping to USA

Show Details

Description:
Good. [ No Hassle 30 Day Returns ][ Ships Daily ] [ Underlining/Highlighting: NONE ] [ Writing: None ]
Item Price
$17.74
$4.25 shipping to USA