Join Amazon Prime and get unlimited Free One-Day Delivery. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
   
More Buying Choices
33 used & new from £16.40

Have one to sell? Sell yours here
 
   
Java Puzzlers: Traps, Pitfalls, and Corner Cases
 
 

Java Puzzlers: Traps, Pitfalls, and Corner Cases (Paperback)

by Joshua Bloch (Author), Neal Gafter (Author) "This book is filled with brainteasers about the Java programming language and its core libraries ..." (more)
4.7 out of 5 stars See all reviews (3 customer reviews)
RRP: £28.99
Price: £17.39 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £11.60 (40%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In stock.
Dispatched from and sold by Amazon.co.uk. Gift-wrap available.

Want guaranteed delivery by Friday, July 17? Choose Express delivery at checkout. See Details
27 new from £16.40 6 used from £19.99

Frequently Bought Together

Java Puzzlers: Traps, Pitfalls, and Corner Cases + Effective Java: Second Edition + Java Concurrency in Practice
Price For All Three: £56.37

Show availability and shipping details


Customers Who Bought This Item Also Bought

Effective Java: Second Edition

Effective Java: Second Edition

by Joshua Bloch
5.0 out of 5 stars (4)  £21.59
Java Concurrency in Practice

Java Concurrency in Practice

by Brian Goetz
4.8 out of 5 stars (6)  £17.39
Java Generics and Collections

Java Generics and Collections

by M Naftalin
5.0 out of 5 stars (3)  £22.94
Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin)

Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin)

by Robert C. Martin
4.4 out of 5 stars (10)  £19.59
SCJP Sun Certified Programmer for Java 6 Study Guide (CX-310-065): Exam 310-065

SCJP Sun Certified Programmer for Java 6 Study Guide (CX-310-065): Exam 310-065

by Katherine Sierra
3.9 out of 5 stars (7)  £24.49
Explore similar items

Product details

  • Paperback: 312 pages
  • Publisher: Addison Wesley (21 Jul 2005)
  • Language English
  • ISBN-10: 032133678X
  • ISBN-13: 978-0321336781
  • Product Dimensions: 23.1 x 18.5 x 2.3 cm
  • Average Customer Review: 4.7 out of 5 stars See all reviews (3 customer reviews)
  • Amazon.co.uk Sales Rank: 27,467 in Books (See Bestsellers in Books)

    Popular in these categories:

    #1 in  Books > Computing & Internet > PC & Video Games > Programming > Java
    #19 in  Books > Computing & Internet > Programming > Languages > Java
    #42 in  Books > Computing & Internet > Programming > Languages & Tools > Object Oriented
  • See Complete Table of Contents

Customers Viewing This Page May Be Interested in These Sponsored Links

  (What is this?)
Corner Trap
   www.gikacoustics.com    Ensure proper acoustics for your recording studio or home theater. 
pestcontrol service wales
   www.falconryservices.co.uk    experienced bird and pest control rat mice wasps fleas bird proofing 
Tarpaulins Online
   www.tarpaflex.co.uk    Over 100 different types & sizes of tarps at discount prices 
  
 

Product Description

Product Description

"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™ 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.





From the Back 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™ 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.





See all Product Description

Inside This Book (Learn More)
First Sentence
This book is filled with brainteasers about the Java programming language and its core libraries. Read the first page
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index
Search inside this book:

Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product)
Check a corresponding box or enter your own tags in the field below
java
programming
puzzles
special interest
puzzlers
nita
it-books
interview
gotchas
excellent and amazing  book
entertainment

Your tags: Add your first tag
 

What Do Customers Ultimately Buy After Viewing This Item?

Java Puzzlers: Traps, Pitfalls, and Corner Cases
59% buy the item featured on this page:
Java Puzzlers: Traps, Pitfalls, and Corner Cases 4.7 out of 5 stars (3)
£17.39
Effective Java: Second Edition
22% buy
Effective Java: Second Edition 5.0 out of 5 stars (4)
£21.59
Java Concurrency in Practice
13% buy
Java Concurrency in Practice 4.8 out of 5 stars (6)
£17.39
Java Generics and Collections
3% buy
Java Generics and Collections 5.0 out of 5 stars (3)
£22.94

 

Customer Reviews

3 Reviews
5 star:
 (2)
4 star:
 (1)
3 star:    (0)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.7 out of 5 stars (3 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
9 of 9 people found the following review helpful:
4.0 out of 5 stars For Effective Java fans, 13 Oct 2005
By A Customer
Very much in the style of Effective Java, this expands on (and refers to) some of the themes in that book, so you might want to read it before this one.

Java Puzzlers highlights some workings of the Java language that might trip you up, particularly when it comes to instantiating and initialising class members and fields. These are represented as small code snippets, the output of which you are expected to predict.

To be honest, as long as you follow correct Java practices (naming packages, classes, methods etc according to standards) you won't be tripped up by most of these. Personally, I have no cause to be messing about with byte and char primitives types, attempting to cast them to ints, hex, octal, or carrying out obscure bit shifting - this seems rather a low-level C-ish thing to do.

That said, there is also some sage advice, particularly about the vagaries of overloading and overriding, and the advice is collected together into an appendix for easy access. It doesn't feel quite as cohesive as EJ, though.

A special mention should go to the various optical illusions that accompany the puzzles. A lot of these I've not seen before, and several of them may cause your optic nerve to melt.

Not as essential as Effective Java, but still worth reading.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
1 of 1 people found the following review helpful:
5.0 out of 5 stars Read for fun, not to be a better programmer, 7 May 2007
By Samuel Halliday (Edinburgh, Scotland) - See all my reviews
(REAL NAME)   
Josh Bloch/Neal Gafter have a talent for giving concise coding wisdom with rock solid examples, this book is no different to Effective Java in that respect.

However, those expecting to hear coding philosophies and common pitfalls to avoid are not going to find them here. This book is about exactly what is says on the cover: corner cases. You may never encounter any of these issues in your entire Java career.

That said, the puzzles are insanely difficult and I found them very entertaining to read. There are possibly 2 or 3 puzzles in the entire book that are "cheap tricks", but the rest are all to do with subtleties in the language itself. If I had any criticism it would be that the puzzles go straight from puzzle to explanation without explicitly showing the output as an intermediary step... the author suggests that you run the programs and try to reach an explanation yourself. I tend to read books when travelling or when taking a break from the computer screen, so this was not practical for me.

If you haven't read Effective Java, I'd strongly recommend you read it first. I'd recommend this book to those that like a challenge or enjoy reading about Java subtleties.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
5.0 out of 5 stars Another gem from Joshua and Neal, 13 Mar 2009
By Mr. Jeremy Flowers "Looking for Java work" (Milton Keynes, UK) - See all my reviews
(REAL NAME)   
You can think of this book as the Java illusionists cookbook.
Full of examples designed to trip you up. Full of "Now you see it. Now you don't" effects. This analogy transcends from the examples to the images too. Optical overloading if you will! I really enjoy reading Joshua's books. He has a memorable style that conveys the nuances of the Java language in such a way as to be informative yet very entertaining at the same time. I thoroughly recommend this book.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Only search this product's reviews



Customer Discussions

 Beta (What's this?)
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]

   


Listmania!


Look for similar items by category


Feedback


Health & Beauty at Amazon.co.uk

Elemis Resurface and Renew Skin Care Gift Set of 4 Products
From soap to shavers, massagers to mascara, stock up on your daily essentials or truly pamper yourself.

Discover Health & Beauty

 

More From Joshua Bloch

Effective Java: Second...

Effective Java: Second Edition

Raves for the First Edition!   “I sure wish I had this book ten years... Read more
£35.99 £21.59

 

A Close Shave

Philips Nivea Coolskin HS8060 Moisturizing Rotary Shaving System
For all types of hair removal, stay smooth with Amazon.co.uk.

Discover Shaving & Hair Removal

 

Treat Someone

Amazon.co.uk Gift Certificates--available in any amount from £5 to £500 With an Amazon.co.uk Gift Certificate, you can get them what they want (even if you don't know what that is).

Learn more about Gift Certificates

 
Ad

Where's My Stuff?

Delivery and Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue Shopping: Top Sellers

amazon.co.uk Amazon Home
International Sites:  United States  |  Germany  |  France  |  Japan  |  Canada  |  China
Business Programs: Sell on Amazon  |  Fulfilment by Amazon  |  Join Associates  |  Join Advantage
Customer Service  |  Help  |  View Basket  |  Your Account
About Amazon.co.uk  |  Careers at Amazon
Conditions of Use & Sale |  Privacy Notice  © 1996-2009, Amazon.com, Inc. and its affiliates