The Stack class works on the principle last-in-first-out (LIFO) stack of objects. It extends the Vector class of the legacy classes having five operations allowing a vector to be treated as a stack. Methods push() and pop() are used to pick and insert the objects into the stack respectively, while the method peek for the item at the top on the stack to check whether the stack is empty.
Initially the stack (when it is first created) does not contain any item.
To know more about java stack click on the link:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: November 17, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles