Feeds

Effective Java

A classic work on Java programming

Boost IT visibility and business value

Book review Although it's not a new title, Joshua Bloch's Effective Java is one of those classics that invariably crops up on people's list of top Java books. And, when the question comes up 'what book do you recommend for someone who's past the beginner stage?', this is usually the answer.

Effective Java

The book assumes a good working knowledge of Java and object oriented development, and is not a tutorial or introduction. Instead, it aims to teach a set of best practice techniques that can be applied to real world coding problems. This isn't about design as such, it's certainly not a set of design patterns, though there is an element of it here.

The author lists 57 techniques to make your Java code more robust, easier to maintain and easier to reuse. These techniques are grouped by theme, such as Creating and Destroying Objects, Methods Common to All Objects, Classes and Interfaces, Serialization, and Threads. Each item is illustrated with sample code, cross-referenced to other items and given a thorough explanation.

For example, item 8: Always overide hashCode when you override equals, explains the principles of object identity, principles which are essential to the understanding of anything but a simple application. Bloch not only gives a thorough explanation, he shows what happens when this rule is violated.

Aside from providing a set of proven techniques, Bloch discusses the pros and cons of each, explaining the reasons as well as the rules. The effect gives a deeper insight into the structure of Java and object orientation in general, and is the reason it's rated so highly among Java developers. It's as though years of hard-won experience have been distilled in a single book.

For someone taking the step up from beginner, the chances are many of the techniques will be way beyond you, or perhaps the advantages are not as clear as you would want. As your coding matures, however, it is likely you'll come back to the book again and again.

Effective Java

Verdict: Essential for any serious Java developer

Author: Joshua Bloch

Publisher: Addison Wesley

ISBN: 0201310058

Media: Book

List Price: £30.99

Reg price: £24.79

Boost IT visibility and business value

More from The Register

next story
NO MORE ALL CAPS and other pleasures of Visual Studio 14
Unpicking a packed preview that breaks down ASP.NET
KDE releases ice-cream coloured Plasma 5 just in time for summer
Melty but refreshing - popular rival to Mint's Cinnamon's still a work in progress
Leaked Windows Phone 8.1 Update specs tease details of Nokia's next mobes
New screen sizes, dual SIMs, voice over LTE, and more
Secure microkernel that uses maths to be 'bug free' goes open source
Hacker-repelling, drone-protecting code will soon be yours to tweak as you see fit
Mozilla keeps its Beard, hopes anti-gay marriage troubles are now over
Plenty on new CEO's todo list – starting with Firefox's slipping grasp
Apple: We'll unleash OS X Yosemite beta on the MASSES on 24 July
Starting today, regular fanbois will be guinea pigs, it tells Reg
HIDDEN packet sniffer spy tech in MILLIONS of iPhones, iPads – expert
Don't panic though – Apple's backdoor is not wide open to all, guru tells us
prev story

Whitepapers

Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Consolidation: The Foundation for IT Business Transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.
Backing up Big Data
Solving backup challenges and “protect everything from everywhere,” as we move into the era of big data management and the adoption of BYOD.
Boost IT visibility and business value
How building a great service catalog relieves pressure points and demonstrates the value of IT service management.
Why and how to choose the right cloud vendor
The benefits of cloud-based storage in your processes. Eliminate onsite, disk-based backup and archiving in favor of cloud-based data protection.