Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
From the Java Perspective RuntimException is a subclass of Exception, which is a subclass of Throwable. The one and only diffrence to other Exceptions is, that a method doesn't need to declare, that it throws this Exception, if it could be thrown within this method. If we have a look to the Runtime Exceptions, delivered with the JDK, we will find among others for instance: ArithmeticException, ClassCastException, IndexOutOfBoundsException, NoSuchElementException, NullPointerException. None of these Exceptions indicates that there is "going something wrong with the JVM" and the JVM isn't ended, why should it be? What's happening is, that the current Thread is sitting and waiting of somebody who is telling what to do. The only diffrence to other Exceptions is, that the Compiler can't ensure, that its impossible to produce this Error Situation. (BTW: it's possible to have a null instance within a method call!)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.