Error hierarchy describes internal errors and resource exhaustion situations inside the Java runtime system. You should not throw an object of this type. There is little you can do if such an internal error occurs, beyond notifying the user and trying to terminate the program gracefully. These situations are quite rare.
runtime internal error, resource exhaustion -> notify user and terminate
Share this highlighthttp://www.safaribooksonline.com/a/core-java-volume/4068103/