Package java.util

Class EmptyStackException

All Implemented Interfaces:
Serializable

public class EmptyStackException
extends RuntimeException
An EmptyStackException is thrown if the pop/peek method of a stack is executed on an empty stack.
See Also:
RuntimeException, Serialized Form
  • Constructor Details

    • EmptyStackException

      public EmptyStackException()
      Constructs a new EmptyStackException with the stack trace filled in.