What is a stack class in java ?
Answer / Rajni Pandey
The Stack class in Java implements a last-in, first-out (LIFO) data structure, which is similar to a pile of plates or a stack of books. The common operations include push (add an element), pop (remove the top element), peek (view the top element without removing it).
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the core java topics?
Does java return by reference?
What is polymorphism java example?
what is the main differene between synchronize() method and Synchronize{}block?
What is local class in java?
What is the difference between I ++ and ++ I in java?
What is use of map in java?
What is a flag value?
What are the different ways of implementing thread? Which one is more advantageous?
Are private methods final?
What is sleep method?
Can an unreachable object become reachable again?