< Prev
Next >

Stack Class

Stack is a legacy class which extends Vector legacy class. Stack is used to maintain a last-in, first-out(LIFO) stack i.e. the last element to enter the Stack is the first one to removed. In other words, Stack can be thought of as a pile of dishes, a new dish is always added to the top of the pile and the first dish to be removed is from the top as well.

Features of Stack

Please subscribe our social media channels for notifications, we post a new article everyday.

Decodejava Google+ Page Decodejava Facebook Page  DecodeJava Twitter Page

Coming Next