What is difference between checked and unchecked exception using Example

preview_player
Показать описание
Exceptions are run time errors.
Checked exception checked at compile time.
Unchecked exception are not checked at compile time.

Рекомендации по теме
Комментарии
Автор

short and easy explanation, thanks bro!

wassizzel
Автор

How IOException is compile time exception ?

rishabhgoel
Автор

You made a mathematical error. a/0 assuming that a is a variable is not infinity. This is undefined. Not possible.

hdjksa