... public final Date end;
Effective Java: Programming Language Guide
174
References
[Arnold00] Arnold, Ken, James Gosling, David Holmes. The Java Programming
Language, Third Edition. Addison-Wesley, ... their package.
Effective Java: Programming Language Guide
175
[J2SE-APIs] Java 2 Platform, Standard Edition, v 1.3 API Specification. Sun
Microsystems. March 20...
... Effective Java: Programming Language Guide
15
The
isBabyBoomer
method unnecessarily creates a new
Calendar
, ... delegates to a backing object, providing an alternative interface to the backing
Effective Java: Programming Language Guide
19
Because memory leaks typically do not manifest themselves as obvious ... database is a good way to bring your entire distributed s...
... 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...
... 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 ...
Burlington, Massachusetts
April 2001
Effective Java: Programming Language Guide
7
This book uses a few technical terms that are not defined in The Java Language Specif...
... 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 ... client-provided mutable object must make this
clear in its documentation.
Effective Java: Programming Language Guide
103
language, in which array lengths are returned se...
... doSomething(list.get(i));
}
Effective Java: Programming Language Guide
107
Chapter 7. General Programming
This chapter is largely devoted to the nuts and bolts of the language. It discusses the ...
Effective Java: Programming Language Guide
110
public static void main(String[] args) {
int n = 2 * (Integer.MAX_VALUE / 3);
int low = 0;
for (int i = 0...
...
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...
... 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 ...
synchronization when reading or writing atomic data. This advice is dangerously
Effective Java: Programming Language Guide
158
Chapter 10. Serialization
This chapter concerns t...