... 1.4, facilitates the latter approach with its
removeEldestEntry
method.
Effective Java: Programming Language Guide
22
Note that the public class,
Foo
, has no finalizer (other than the trivial ... executed, even if a subclass
finalizer fails to invoke
super.finalize
.
Effective Java: Programming Language Guide
20
Don't be seduced by the methods System.gc and 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. ... >>> 32) ).
iv. If the field is a
float compute...
... package.
Effective Java: Programming Language Guide
175
[J2SE-APIs] Java 2 Platform, Standard Edition, v 1.3 API Specification. Sun
Microsystems. March 20 01. <http:/ /java. sun.com/j2se/1.3/docs/api/overview-summary.html>. ... Microsystems. January 20 01.
<http:/ /java. sun.com/j2se/javadoc/writingdoccomments/>.
[Javadoc-b] Javadoc Tool Home Page. Sun Microsyst...
... up with me while I wrote.
Effective Java: Programming Language Guide
Joshua Bloch
Publisher: Addison Wesley
First Edition June 01, 20 01
ISBN: 0 -20 1-31005-8, 27 2 pages
Are you ready ... native methods judiciously 121
Item 37: Optimize judiciously 122
Item 38: Adhere to generally accepted naming conventions 124
Effective Java: Programming Language Guide
13...
... 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 ... System.out.print(tests[i].name());
}
}
Effective Java: Programming Language Guide
89
it could just as well be a singleton to save on unnecessary object creation cost...
...
TreeSet are sorted:
Effective Java: Programming Language Guide
1 12
Finally, suppose you want to know all of the keys for which two
Hashtable
instances,
h1
and
h2
, contain the same mappings. ... (or any other negative power of ten) as a
float
or
double
exactly.
Effective Java: Programming Language Guide
122
Item 37: Optimize judiciously
There are three a...
...
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 ... detector. The Java 2 SDK comes with a simple profiler, and several more sophisticated
profiling tools are available commercially.
Effective Java: Programming Language...