RuntimeExceptionNameRuntimeExceptionSynopsis
DescriptionThe RuntimeException class is the superclass of the standard run-time exceptions that can be thrown in Java. The appropriate subclass of RuntimeException is thrown in response to a run-time error detected at the virtual machine level. A run-time exception represents a run-time condition that can occur generally in any Java method, so a method is not required to declare that it throws any of the run-time exceptions. A Java program should try to handle all of the standard run-time exception classes, since they represent routine abnormal conditions that should be anticipated and caught to prevent program termination. Class Summary
public class java.lang.RuntimeException extends java.lang.Exception { // Constructors public RuntimeException(); public RuntimeException(String s); } ConstructorsRuntimeExceptionpublic RuntimeException()
public RuntimeException(String s)
Inherited Methods
See AlsoArithmeticException, ArrayStoreException, ClassCastException, EmptyStackException, IllegalArgumentException, IllegalMonitorStateException, IllegalStateException, IndexOutOfBoundsException, MissingResourceException, NegativeArraySizeException, NoSuchElementException, NullPointerException, SecurityException, Throwable |
|