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

+3

Exceptions different from checked exceptions?

2/8/2020 6:27:05 AM

Sheep

3 Answers

New Answer

+2

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.

+1

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/

0

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