25.52 java.lang.RuntimeException (JDK 1.0)This exception type is not used directly, but serves as a superclass of a group of run-time exceptions that need not be declared in the throws clause of a method definition. These exceptions need not be declared because they are run-time conditions that can generally occur in any Java method. Thus, declaring them would be unduly burdensome, and Java does not require it.
public class RuntimeException extends Exception { // Public Constructors public RuntimeException(); public RuntimeException(String s); } Hierarchy:Object->Throwable(Serializable)->Exception->RuntimeException Extended By:ArithmeticException, ArrayStoreException, ClassCastException, EmptyStackException, IllegalArgumentException, IllegalMonitorStateException, IllegalStateException, IndexOutOfBoundsException, MissingResourceException, NegativeArraySizeException, NoSuchElementException, NullPointerException, SecurityException |
|