Jump to ratings and reviews
Rate this book

Java Pitfalls: Time-Saving Solutions and Workarounds to Improve Programs

Rate this book
A lifesaver for any Java programmer-proven workarounds and time-saving solutions Although using the Java language provides a substantial boost to a programmer's productivity, it still has its share of subtleties andweaknesses. This book is designed to save you time and frustration by carefully guiding you through this potential minefield. A team of Java experts, led by programming guru Michael Daconta, offers a collection of proven solutions to 50 difficult, real-world problems chosen from their own extensive experiences. You'll find workarounds for problems caused by shortcomings in both the Java language itself and in its APIs and utilities, including java.util, java.io, java.awt, and javax.swing. The authors also share techniques for improving the performance of your Java applications.

For easy reference, the book is organized into categories so that similar solutions are grouped together.

Examples of topics covered
* Language syntax, for example, using the String equals( ) method instead of the == operator (Item2)
* Language support, for example, method dispatching with reflection, interfaces, and anonymous classes (Item 16)
* Utilities and collections, like choosing between a PropertyFile and ResourceBundle (Item 20)
* Input/output, including subtleties in sending serialized objects over a network (Item 25)
* GUI presentation, for example, tackling the common pitfall of using repaint( ) instead of validate( ) for relaying out components (Item 29)
* Performance, including tips like lazy loading your way to better performance (Item 43)

336 pages, Paperback

First published April 20, 2000

8 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
3 (20%)
4 stars
7 (46%)
3 stars
3 (20%)
2 stars
2 (13%)
1 star
0 (0%)
Displaying 1 - 2 of 2 reviews
Profile Image for Ľuboš Barskto.
90 reviews5 followers
April 22, 2020
Kniha je uz trochu zastarala, rovnako ako niektore techniky v nej opisane. Cielova skupina su programatori prechadzajuci z C/C++ do Javy. Su tu opisane ale aj rozne chyby a chytaky, s ktorymi sa aj dnes este programotor moze stretnut, takze som sa naucil aj nieco nove. Su hlavne na zaciatku knihy, nie je ich vela, ale aspon daco. Kapitoly venujuce sa GUI (AWT/Swing) som vynechal, to su temne zakutia Javy, ktore nechcem a nepotrebujem skumat :)
Profile Image for Chris Branch.
684 reviews19 followers
May 31, 2013
I don't read many technical books straight through, but this one is well written with a good conversational tone that makes it a pleasant read.

The material is somewhat out of date, since a lot has changed in Java since the book was written in 2000, but as a thoughtful discussion of programming issues in general that happens to use Java for its examples, there is plenty of relevant info here. I would consult current Java docs before implementing anything described here since some of the issues that were being addressed have been eliminated with later updates to the language.
Displaying 1 - 2 of 2 reviews

Can't find what you're looking for?

Get help and learn more about the design.