1
The Java Stack class extends the Vector class. It lets you create new elements, view an element in the stack, update an element in the stack, and delete all elements from the stack. Stacks process data in a first-in-last-out (FILO) order. This means you can only add or remove items from the top of a stack.