In Java, we have Collections.emptyList() and Collections.EMPTY_LIST. Both have the same property:
Returns the empty list (immutable). This list is ser
Lets get to the source :
public static final List EMPTY_LIST = new EmptyList<>();
and
@SuppressWarnings("unchecked") public static final List emptyList() { return (List) EMPTY_LIST; }