CHAPTER 21: The Package java.util |
![]() Previous |
![]() Java Language |
![]() Index |
![]() Next |
A EmptyStackException is thrown to indicate an attempt to pop (S21.12.2) or peek (S21.12.3) an empty Stack object.
public class EmptyStackException extends RuntimeException { public EmptyStackException(); }
public EmptyStackException()
This constructor initializes a newly created EmptyStackException with null as its error message string.
© 1996 Sun Microsystems, Inc. All rights reserved.