Exceptions different from checked exceptions? | SoloLearn: Learn to code for FREE!


Exceptions different from checked exceptions?

2/8/2020 6:27:05 AM


3 Answers

New Answer


Exceptions implement the Throwable interface in Java. Exceptions are of two type- Checked - These are checked at compile time. Unchecked- These are checked at run time.


Checked exception is a type of exception then why there is difference? Check for more information here. https://www.geeksforgeeks.org/exceptions-in-java/amp/


if method possibly produces exceptions, if it is checked e. - you must check it with try - catch statement unchecked e. - you can check it, or not