can someone please tell me why the following code snippet is illegal AND what is the correction to be made ?
I tried making a full program using 'ArithmeticException' instead of IO, as shown below and it compiles. However, when i put IOException in place of ArithmeticException in the above program, i get a compile-time error.
Please help me to understand what is happening here ?
Regards..rsb
PS : How do i present/format my code on this website the way an
IDE does it ?