Tag Archives: coding guidelines

Default vs No-Argument Constructor

Some Java developers out there are very diligent about documenting their code with Javadoc. Every now and then, you see something like this: class MyClass { /** * Default constructor that initializes MyClass * using default values. */ MyClass() { … } … } The constructor in the example is called a no-argument constructor and not [...]

Backward Compatibility Caveats

It’s a universal goal — to attempt to make the most of your software. Backward compatibility is one tool that helps, and it is not at all foreign to the Java Platform development effort. A JDK 1.5 compiler is able to produce classes meant to run in a Java 1.4 Virtual Machine, as part of [...]