Java Online Training In Andhra Pradesh and Telangana
Opening Hours :7AM to 9PM
Collection Framework Stack
Stack Class :
Stack is a predefined package in java.util package .It allows duplicate elements along with unique elements and it works on last in first out manner.That means the element which inserted at last, that can be retrieved first.
Stack class offers the following predefined methods.