The collection can only hold objects and holds objects that are instances of the object class.
Java Collection framework: a collection of class libraries contains a number of superclass classes that contain multiple elements and provide a way to manipulate the contained elements, including elements that can be composed of the same type of object or by different types of objects.
This includes vector vectors, stack stacks, hashtable hash tables, and so on.
The vector class is similar to a variable-length array, where the vector can only hold objects, and the elements of the vector can only be accessed by subscript.
The Stack class is a subclass of the vector class that describes the data structure of the stack
ArrayList: An array that can automatically grow the capacity.
201671010129 2016-2017-2 "Java Programming" a summary of the collection of learning Java