Exceptions different from checked exceptions? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 3

Exceptions different from checked exceptions?

8th Feb 2020, 6:27 AM
Sheep - avatar
3 Réponses
+ 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.
8th Feb 2020, 9:45 AM
Avinesh - avatar
+ 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/
8th Feb 2020, 6:57 AM
AÕĘJ - avatar
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
8th Feb 2020, 10:52 AM