News

The Java language spec lists 10 Java constructor types, including default, no-args, canonical, private parameterized, generic, overloaded and anonymous.
Joshua Bloch uses an example similar to mine above to illustrate Item 5 (“Avoid Creating Unnecessary Objects”) in the Second Edition of Effective Java. He points out that this extra ...