... be held when
Effective Java: Programming Language Guide
141
Chapter 9. Threads
Threads allow multiple activities to proceed concurrently in the same program. Multithreaded
programming is ... WorkQueue recipient = (WorkQueue) sender;
recipient.enqueue(this);
}
}
Effective Java: Programming Language Guide
1 49
One way to do this is to provide a wrapper class (I...
... they are using.
Effective Java: Programming Language Guide
5
Chapter 1. Introduction
This book is designed to help you make the most effective use of the Java programming
language and its ... method when necessary 171
References 174
Effective Java: Programming Language Guide
3
Preface
In 199 6 I pulled up stakes and headed west to work for JavaSoft, as it was...
... [Gamma98, p. 1 39] , also known as views. An adapter is one
object that delegates to a backing object, providing an alternative interface to the backing
Effective Java: Programming Language Guide ... Effective Java: Programming Language Guide
15
The
isBabyBoomer
method unnecessarily creates a new
Calendar
, ... database is a good way to bring your entire distributed sy...
... Effective Java: Programming Language Guide
33
A good hash function tends to produce unequal hash codes for unequal ... an odd prime. If it was even and the multiplication overflowed, information
Effective Java: Programming Language Guide
34
would be lost because multiplication by two is equivalent to shifting. ... fact, a perfectly reasonable
hashCode implementation for...
... a holdover from the C programming
Effective Java: Programming Language Guide
93
Item 24: Make defensive copies when needed
One thing that makes the Java programming language such a pleasure ... Effective Java: Programming Language Guide
99
The
name
method is declared in class
A
and overridden in classes
B
... client-provided mutable object must make this...
... each. How much
change do you get?
System.out.println(1.00 - 9* .10);
According to this program fragment, you get $0. 099 999 999 999 999 95. You might think that
the problem could be solved merely ... the program, you'll find that you can afford three pieces of candy, and you have
$0. 399 999 999 999 999 9 left. This is the wrong answer! The right way to solve this problem is
to...
...
Effective Java: Programming Language Guide
124
The need to measure the effects of optimization is even greater on the Java platform than on
more traditional platforms, as the Java programming ...
indirectly).
Effective Java: Programming Language Guide
136
use of the method, as it effectively obscures any other exception that may be thrown in the
same context.
W...
... December 199 9.
<http://www.w3.org/TR/ 199 9/REC-html401- 199 91224/>.
Effective Java: Programming Language Guide
163
The presence of the @serial tag tells the Javadoc utility to place this documentation ... Java Core
Libraries. In ACM 199 9 Java Grande Conference pages 35–41. ACM Press, June 199 9. Also
available as <http://research.compaq.com/SRC/mercator/papers /...