All About Class EmptyStackException in java

EmptyStackException is thrown by the stack class to indicate that the stack is empty and there is no element present to pop out from the stack.


public class java.util.EmptyStackException extends
             java.lang.RuntimeExceprion{
//constructor
public EmptyStackException();
//constructs a new EmptyStackException with no details message.
}
 
All About Class EmptyStackException in java All About Class EmptyStackException in java Reviewed by Animesh Chatterjee on September 14, 2018 Rating: 5

No comments:

Powered by Blogger.