REVIEW - Practical Java - Programming Language Guide


Title:

Practical Java

Programming Language Guide

Author:

Peter Haggar

ISBN:

Publisher:

Addison-Wesley Professional (2000)

Pages:

279pp

Reviewer:

Ian Bolland

Reviewed:

December 2000

Rating:

★★☆☆☆


This book is a collection of practical suggestions, advice, examples and discussions about Java programming. The organisation is inspired by that of Scott Meyer's Effective C++ ; it consists of 68 mini-essays, grouped into the following sections:

  • Objects and equality
  • Exception handling
  • Performance
  • Multi-threading
  • Classes and interfaces
  • Miscellaneous topics
It intentionally focuses on the core language rather than the libraries and mostly concentrates on those features that are common to all versions of Java; so, for example, there is no discussion of the new Java 2 collections. It assumes you are familiar with the language syntax and elements and want to know how to make best use of the language. Most of the discussions are fairly elementary; if you are already an intermediate-level Java programmer you are unlikely to find anything you did not already know.

The discussions are generally easy to follow, but I sometimes feel that the author misses the wood for the trees. For example, he spends 35 pages discussing pitfalls that can occur when overriding the

equals()
method, but never quite manages to explain why you would need to do so. He produces a rather contrived example of comparing golf balls, but never explains why the comparison must be done by overriding
equals()
rather than by a user method such as
sameBrandAndMake()
. He also fails to point out that if you override
equals()
you will probably also need to override
hashCode()
.

If you are a beginner who has mastered the basic syntax, then you need to understand most of the material in this book before you can consider yourself a competent Java programmer. However I am reluctant to give the book an unconditional recommendation, since much of the material can also be found in the better introductory Java books and so you may find this one redundant. Perhaps the best solution would be to borrow a copy, or at least to read through the detailed table of contents in the bookshop. If you find that you already understand most of the material,you can spend your money on something more advanced instead.


Book cover image courtesy of Open Library.





Your Privacy

By clicking "Accept Non-Essential Cookies" you agree ACCU can store non-essential cookies on your device and disclose information in accordance with our Privacy Policy and Cookie Policy.

Current Setting: Non-Essential Cookies REJECTED


By clicking "Include Third Party Content" you agree ACCU can forward your IP address to third-party sites (such as YouTube) to enhance the information presented on this site, and that third-party sites may store cookies on your device.

Current Setting: Third Party Content EXCLUDED



Settings can be changed at any time from the Cookie Policy page.