0-element, or empty, arrays may seem useless, but they are preferred to the null value for indicating the empty set. Always referring to array instances eliminates the need for null-value tests. See Item 27 — Return zero-length arrays, not nulls — in Effective Java by Joshua Bloch, Addison Wesley, 2001.
This page last modified on 24 January 2006.