Stack using Java Collections Framework

Stack is implemented in Java using the Collections Framework. It helps us in doing the actual work rather than making the primitive stack functions again and again.  Stack follows LAST IN FIRST OUT operation.

Stack only defines the default constructor, which creates an empty stack. Stack includes all the methods defined by Vector, and adds several of its own.

Leave a Reply

%d bloggers like this: