|
Hi paty,
There are 2 types of exceptions.
Unchecked exceptions : excptions that could happen at run time..u dont have to handle them because the java compilers dont check if u handled them or not (but u better do).
Checked Exceptions: Exceptions that u have to handle because the java compiler will give u a compile erroe if u dont do.
Exception can be hadled directley when they accoured(by try and catch blocke) or can be propagated (using throw clousle).
Its really a very bi argument..u better read a bit about it.
Bye.
|