+ 4
how to handle unchecked exception ?
4 ответов
+ 1
unchecked exceptions are nothing but run time errors.dividing a no. by 0, finding a squareroot of a -ve no. so to handle these exceptions put the program segment in try catch block.
0
On ur way
0
always try to write ur code within try and catch block so that exception cannot interrupt your flow of process
0
use this as the last catch block:
catch(Exception ex)
{
}
This will catch all the exceptions.
Make sure you put this block as the last one or this block will be executed before the one you have specified (if any).