[Chapter 25] 25.52 java.lang.RuntimeException (JDK 1.0)
Author: David Flanagan
Date: Thu Jul 31 16:27:33 1997

#

| Chapter 25 The java.lang Package |

## 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

java.lang.Runtime (JDK 1.0) |  | java.lang.SecurityException (JDK 1.0)