+ 1
What is exception handling?
2 Answers
+ 2
Think of exception handling as error handling.
If an error occurs, you need to deal or 'handle' it otherwise your program will crash.
@corejava
1/0 is NOT infinity. (Mathematically)
The reason it would show Infinity for floating point numbers could be due to rounding errors or since 0 has a positive sign (In regards to its bits)
+ 1
eg in program
if u divide 1/0 it shows error coz it's answer is infinity
it will not show u infinity on this case we have to use exception handling they r generally try catch throws finally