Hi
we want to know that What is the difference between a runtime exception and a plain exception?
What is the difference between a runtime exception and a plain exception?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


NIlesh Patel32 reputationPosted Apr 28, 2012, 4:05 AM EDT
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
MuthuMari MRank #5,738 · 288 reputationPosted Apr 28, 2012, 9:15 AM EDT
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"