The following example shows how to create an empty collection. Using empty collections
instead of assigning null avoids NullPointerException.
The Collections class provides several type safe methods which return empty collections
which are both immutable and Serializable.
Collections.emptyList()
Collections.emptySet()
Collections.emptyMap()
As these returned collection is immutable changing the state
of it using methods such as add/set/put throws UnsupportedOperationException.
It acts as a place holder until the actual collection is initialized.