A List object is a Collection object: the List interface extends the Collection interface. You can use a List object, such as an ArrayList or LinkedList , wherever you need a Collection .
The Enum type is a kind of static list, declaring the class as enum, for example:
public enum MyEnum { FirstOption, SecondOption, ThirdOption; }
The type Map is an associative set; e.g. Hashtable , HashMap and TreeMap are all instances of a Map .
source share