Feeds

Java Puzzlers

Excellent!

  • alert
  • submit to reddit

Choosing a cloud hosting partner with confidence

Book review 'Java Puzzlers' is unlike any Java book we've seen before. Promising the reader an exploration of 'traps, pitfalls and corner cases', this is by turns entertaining, infuriating and downright puzzling. It is also truly illuminating, and serves to educate while it entertains. One would expect no more from the combined talents of Joshua Bloch (author of the classic Effective Java, one of our most highly recommended intermediate/advanced Java titles), and Neal Gafter (formerly of Sun and now Java evangelist at Google).

The book consists of 95 puzzles themed across ten chapters. Most puzzles consist of a small block of seemingly innocent code and a straightforward question. But the appearance of simplicity is usually deceptive and the puzzles cast a light on some quirk, trap, pitfall or ambush. Occasionally there's no code and the puzzle is for the reader to supply the code to answer the question. And, like the best puzzles, these ones grab the reader and don't let go. This is not a book that you can read passively. It's also a lot of fun.

While this isn't the sort of book that we'd recommend to the complete beginner, anyone competent with Java will find the contents engaging and challenging. Getting the right answer gives a real buzz, but even if your answers are mostly wrong you'll learn something in the process. And it's doubtful that anyone, no matter how good they are, will skate through this book and not get tripped up along the way.

There's a serious intent behind the book as well and that is it does high-light the traps that await the unwary. With frequent references back to the Java language specification and to Effective Java, this is a book that warns of suspect practices and points out the source of hard-to-find bugs and odd program behaviour. It's educational in the best sense of the word.

An appendix provides a complete listing of all the traps and pitfalls high-lighted by the puzzles, along with a word of advice on how to avoid the problem in the first place. It's good advice but not half as much fun as working through the puzzles in the first place.

Mention must also be made of the design of the book. It's put together in such a way that the solutions to the puzzles always appear over-page, so there's no chance of accidentally getting sight of the solution as you're reading the question. The book is also illustrated with optical illusions which add to the pleasure.

What more can we say? It gets a very hearty recommendation.

Title: Java Puzzlers

Authors: Joshua Bloch and Neal Gafter

Publisher: Addison Wesley

ISBN: 032133678X

Media: Book

Level: Intermediate/Advanced

Verdict: Excellent!

Remote control for virtualized desktops

More from The Register

next story
Euro Parliament VOTES to BREAK UP GOOGLE. Er, OK then
It CANNA do it, captain.They DON'T have the POWER!
Download alert: Nearly ALL top 100 Android, iOS paid apps hacked
Attack of the Clones? Yeah, but much, much scarier – report
NSA SOURCE CODE LEAK: Information slurp tools to appear online
Now you can run your own intelligence agency
Post-Microsoft, post-PC programming: The portable REVOLUTION
Code jockeys: count up and grab your fabulous tablets
Twitter App Graph exposes smartphone spyware feature
You don't want everyone to compile app lists from your fondleware? BAD LUCK
Microsoft: Your Linux Docker containers are now OURS to command
New tool lets admins wrangle Linux apps from Windows
prev story

Whitepapers

Go beyond APM with real-time IT operations analytics
How IT operations teams can harness the wealth of wire data already flowing through their environment for real-time operational intelligence.
A strategic approach to identity relationship management
ForgeRock commissioned Forrester to evaluate companies’ IAM practices and requirements when it comes to customer-facing scenarios versus employee-facing ones.
Why CIOs should rethink endpoint data protection in the age of mobility
Assessing trends in data protection, specifically with respect to mobile devices, BYOD, and remote employees.
Reg Reader Research: SaaS based Email and Office Productivity Tools
Read this Reg reader report which provides advice and guidance for SMBs towards the use of SaaS based email and Office productivity tools.
Seattle children’s accelerates Citrix login times by 500% with cross-tier insight
Seattle Children’s is a leading research hospital with a large and growing Citrix XenDesktop deployment. See how they used ExtraHop to accelerate launch times.