Hi
we want to know that What is the difference between a runtime exception and a plain exception?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MuthuMari MPosted Apr 28, 2012, 1:15 PM
Runtime Exceptions like out-of-bound array indices, NullPointerException , AirthmeticException are all subclasses of java.lang.RuntimeException class, which is a subclass of Exception class. They are known as unchecked exceptions, meaning that the programmer have no need to make a method for catching these exceptions. If they are not caught explicitly it is dealt by the default exception handler.
The exceptions other than RuntimeException all exceptions are called checked exceptions. The compiler ensures that if a method can throw a checked exception, directly or indirectly, then the method must explicitly deal with it. The method must catch the exception and take appropriate action.
thanks.
If this post is useful then mark it as "Accepted Answer"
NIlesh PatelPosted Apr 28, 2012, 8:05 AM
Use This Link
https://www.experts123.com/q/whats-the-difference-between-a-runtime-exception-and-a-plain-exception-why-dont-runtime-exceptions-have-to-be-declared.html
http://www.careerride.com/j14.aspx