Tuesday 12 March 2013

java.lang RuntimeException


java.lang
RuntimeException

Declaration
public class RuntimeException extends Exception
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
Direct Known Subclasses: ArithmeticException, ArrayStoreException,
ClassCastException, java.util.EmptyStackException,
IllegalArgumentException, IllegalMonitorStateException,
IndexOutOfBoundsException, NegativeArraySizeException,
java.util.NoSuchElementException, NullPointerException, SecurityException
Description
RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of
the Java Virtual Machine.
A method is not required to declare in its throws clause any subclasses of RuntimeException that might
be thrown during the execution of the method but not caught.
Since: JDK1.0, CLDC 1.0


Constructors
RuntimeException()
RuntimeException(String s)



Methods inherited from class Object
equals(Object), getClass(), hashCode(), notify(), notifyAll(), wait(), wait(), wait()
Methods inherited from class Throwable
getMessage(), printStackTrace(), toString()


Constructors
RuntimeException()
Declaration:
public RuntimeException()
Description:
Constructs a RuntimeException with no detail message.
RuntimeException(String)
Declaration:
public RuntimeException(java.lang.String s)
Description:
Constructs a RuntimeException with the specified detail message.
Parameters:
s - the detail message.











No comments:

Post a Comment