40 used & new from $0.05

Have one to sell? Sell yours here
 
 
Java Pitfalls: Time-Saving Solutions and Workarounds to Improve Programs
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get your Kindle here.
 
  

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

~ Michael C. Daconta (Author), Eric Monk (Author), J. Paul Keller (Author), Keith Bohnenberger (Author) "The Java language is a derivative of the C++ language with some features borrowed from Objective C, Eiffel, Smalltalk, Mesa, and Lisp..." (more)
Key Phrases: greeting method, public object clone, implementing clone, Farmer Rick, Java Language Specification, User Name (more...)
4.0 out of 5 stars  See all reviews (19 customer reviews)


Available from these sellers.


12 new from $12.94 28 used from $0.05

Customers Who Bought This Item Also Bought

More Java Pitfalls: 50 New Time-Saving Solutions and Workarounds

More Java Pitfalls: 50 New Time-Saving Solutions and Workarounds

by Michael C. Daconta
4.5 out of 5 stars (11)  $40.00
Practical Java(TM) Programming Language Guide

Practical Java(TM) Programming Language Guide

by Peter Haggar
4.3 out of 5 stars (38)  $25.66
Effective Java (2nd Edition)

Effective Java (2nd Edition)

by Joshua Bloch
4.9 out of 5 stars (36)  $33.03
Code Complete: A Practical Handbook of Software Construction

Code Complete: A Practical Handbook of Software Construction

by Steve McConnell
4.7 out of 5 stars (113)  $31.49
Mastering Regular Expressions

Mastering Regular Expressions

by Jeffrey Friedl
4.5 out of 5 stars (134)  $29.69
Explore similar items

Editorial Reviews

Review

"Any programmers office would benefit from having at least one copy of this book hanging around." -- Application Development Adviser, September 2000

"Any programmers office would benefit from having at lest one copy of this book hanging around." (Application Development Adviser, September 2000)

"I found the book useful..."(Cvu, February 2001)

"I found the book useful..." -- Cvu, February 2001


Product Description

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 include:
* 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)

Product Details

  • Paperback: 336 pages
  • Publisher: Wiley; 1 edition (April 20, 2000)
  • Language: English
  • ISBN-10: 0471361747
  • ISBN-13: 978-0471361749
  • Product Dimensions: 9 x 7.5 x 0.6 inches
  • Shipping Weight: 1.3 pounds
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (19 customer reviews)
  • Amazon.com Sales Rank: #630,721 in Books (See Bestsellers in Books)

Inside This Book (learn more)




What Do Customers Ultimately Buy After Viewing This Item?

Java Pitfalls: Time-Saving Solutions and Workarounds to Improve Programs
50% buy the item featured on this page:
Java Pitfalls: Time-Saving Solutions and Workarounds to Improve Programs 4.0 out of 5 stars (19)
More Java Pitfalls: 50 New Time-Saving Solutions and Workarounds
22% buy
More Java Pitfalls: 50 New Time-Saving Solutions and Workarounds 4.5 out of 5 stars (11)
$40.00
Practical Java(TM) Programming Language Guide
13% buy
Practical Java(TM) Programming Language Guide 4.3 out of 5 stars (38)
$25.66
Effective Java: Programming Language Guide (Java Series)
8% buy
Effective Java: Programming Language Guide (Java Series) 4.8 out of 5 stars (122)
$32.33

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(2)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

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

 
46 of 50 people found the following review helpful:
5.0 out of 5 stars Excellent and practical guide for all Java developers, July 24, 2000
By David Reilly (Gold Coast, Queensland Australia) - See all my reviews
(REAL NAME)   
I've reviewed quite a few Java books about improving the attributes of Java software. Some concentrate on improving the design, others the robustness of software or the performance. While they usually start out promising, by the end of the book you're left with a good understanding of theory but little practical skills. Java Pitfalls : Time-Saving Solutions and Workarounds to Improve Programs, breaks free of that mould, by providing a wealth of techniques and code that has real practical application. The title does not do it justice, however. Not only does the book show you how to improve programs, the advice contained within also saves you time, frustration, and effort.

After reading through even a few pages of tips within the book, you understand that the advice isn't dry theory, but practical advice gained from real-life problems that Java developers face. Michael Daconta, and his co-authors, offer warnings gained from the trenches of software development using Java.

The book is divided neatly into eight sections, covering different aspects of Java programming. A wide range of areas are covered, from the obligatory Java language syntax, to more fun topics like graphical user interfaces (using AWT and Swing), the utilities package and collections, input and output (I/O), and even improving Java performance. The one significant area lacking from the book, in my opinion, is a section on network programming pitfalls, and perhaps other advanced topics like databases. These areas are fraught with pitfalls for the unwary. However, for readers not involved with such areas, this is a moot point, and it leaves more room for other tips.

There are a total of 50 individual pieces of advice, and each is packed full of detailed code examples. Whether you're a Java newbie, or an experienced Java developer looking to improve your coding and reduce the frustration and time of software development, Java Pitfalls is an ideal addition to your book collection. With the usefulness of this advice, you'll probably find it taking a place on your desk though, rather than the bookshelf. -- David Reilly, reviewed for the Java Coffee Break

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



 
18 of 18 people found the following review helpful:
3.0 out of 5 stars Beware the Pitfalls in this Book, May 12, 2001
By "schapel" (Hillsborough, NJ USA) - See all my reviews
  
This book explains some of the more common pitfalls in Java programming. While I can't totally disagree with the any of the suggestions on avoiding the pitfalls, the explanations the authors give are often incomplete and confusing.

Take, for example Item 17, where three pages are devoted to explaining what exceptions are. Then there is an example of catching an exception, printing some diagnostics, and re-throwing exactly the same exception. Suddenly, the topic veers to catching OutOfMemoryError. Where is the explanation of the pitfall of mistakenly catching exceptions when they should not be caught, or catching Exception instead of a subclass of Exception? In my experience, these are the pitfalls that Java programmers are more likely to run into. The authors simply didn't explain how 95% of exception handling code should be written.

Another example is Item 12, where synchronization is introduced in five pages. The pitfalls I see Java programmers falling into is believing that only one synchronized method in a class may be called at a time, not understanding how static methods are synchronized, and not understanding memory barriers. The authors skip right over those topics and start discussing how to avoid deadlocks.

In my first hour of looking through the book, I also found the authors confusing references with objects, passing a reference by value with passing an object by reference, setting references to null and calling System.gc() with rational memory management, exponential growth with quadratic growth, simple assertions with design by contract programming, the semantics of the C assert macro with the semantics of a Java assertion method, the Adapter pattern with a simple superclass, and the Java import statement with the #include directive of C. All of these are pitfalls that Java programmers often run into.

Also be aware that nearly half of the book covers GUI pitfalls. This part of the book will be of no use to server-side Java programmers. I can recommend this book only to intermediate-to-advanced Java programmers who write GUI code, and only in addition to other books on Java style or idioms.

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



 
21 of 22 people found the following review helpful:
4.0 out of 5 stars Good book, June 26, 2000
By ZhongDan LAN (Newark, New Jersey, USA) - See all my reviews
(REAL NAME)   
Pros:

*)Covers a lot of java topics, from language syntax, API (JFC) to performance issues.

*)Concrete, real examples.

*)OO design issues, as MVC patterns, lazy evaluation, etc.

*)Some issues are java related, which have different behaviors in C++, as "Passing Primitive by Reference", "Boolean Logic and Short-Circuit Operators", well done.

Cons:

*)Explanation can be deeper, and clearer.

*)No contributions to enterprise java: javabean, JDBC, RMI, Servlet, JSP, EJB.

*)Some explanations are not accurate: for example: Abstract methods must be overridden should be replaced by "Abstract methods must be overridden in CONCRETE classes".

*)No references at the end of the book, <Effective C++>>, <<Design Patterns>> can be listed.

Suggestion:

Buy this book with <<Practical Java Programming Language Guide: The Addison-Wesley Professional Computing Series>> (ISBN: 0201616467) and/or <<The Elements of Java Style>> (ISBN: 0521777682).

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


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

3.0 out of 5 stars Average At Best
Java Pitfalls is an average book that junior level Java developer may find useful. The book is divided into several sections, with each section containing one or more ideas,... Read more
Published on August 10, 2002 by Jonathan Calvert

2.0 out of 5 stars A flawed and poorly written book.
The first paragraph in the book uses the word `effective' six times an obvious attempt to be associated with Scott Meyer's successful "Effective C++" and the genre of "Effective"... Read more
Published on November 11, 2001 by Doug Bell

5.0 out of 5 stars Absolute Classic
This appears on a number of lists of must have Java books, and it is definitely on mine.

The first time it saves you five hours otherwise spent on some little Java detail that... Read more

Published on November 5, 2001

5.0 out of 5 stars A Must-Have!!!
For anyone serious about learning and understanding the issues programmers think about! Daconta helps you plug those holes in the technology that other authors or instructors... Read more
Published on October 18, 2001 by Farris S. Alamat

1.0 out of 5 stars Bad choice to buy this book !
The issues raised in this book are few, and they are well-known and they are not interesting. E.g. the stuff about Strings in Java, well everyone knows it after 0. Read more
Published on August 8, 2001 by heikki_

1.0 out of 5 stars Good concept, but has no depth.
At first this looks like a really valuable book. It shows the common pitfalls of Java and elegant ways to get around them. Who wouldn't want to know this stuff? Read more
Published on June 10, 2001 by Richard Hassinger

2.0 out of 5 stars Don't buy unseen
Don't buy this book unseen. I did and I regret it. It was certainly not the eye-opener I hoped it to be. Read more
Published on May 17, 2001

5.0 out of 5 stars Excellent practical advice
As an intermediate Java programmer, I've hit several of the items in this book, and it's already saved me time in finding my mistakes. Read more
Published on May 8, 2001

5.0 out of 5 stars Excellent Book For Every Java Developer
This is the best book I have read on Java language. There was lot of stuff I never thought about. Lot of issues is addressed in Java Developer Connection but it is hard to search... Read more
Published on April 11, 2001 by A. Gupta

5.0 out of 5 stars Experienced to Advanced, this book is a must-have!
I can not say enough good things about Java Pitfalls. I actually recieved this book as a gift and was overwhemingly surprised with the amount of applicable knowledge that this... Read more
Published on November 10, 2000 by bezeert

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

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

Search Customer Discussions
Search all Amazon discussions
   



So You'd Like to...

Create a guide

Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.



Your Recent History

 (What's this?)

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