0

What is the main idea upon the exception handling?

6th Apr 2017, 1:40 PM
Saif Khalid Mohammed Almulla
5 Respostas
+ 8
... to handle exceptions... such as memory leaks, logical errors, type errors, etc.
6th Apr 2017, 2:01 PM
Hatsy Rei
Hatsy Rei - avatar
+ 4
Main idea to make the program can be run in os without losing bytecodes ,maybe 😑
6th Apr 2017, 2:09 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
0
F
6th Apr 2017, 2:42 PM
Vitaly Podgornov
Vitaly  Podgornov - avatar
0
To stop being caught any runtime error and thus make us system run safely.the exception handling block executes if any run time errors get caught. class ExceptionHandling { public static void main(String[] args) { try{ int a=10,b=0; int c=a/b; } catch(ArithmeticException,e) { System.out.print("zero division is performed"); } }
21st May 2017, 5:28 AM
Nandini Injarapu
Nandini Injarapu - avatar
0
If we dont catch exceptions then our program will terminates abnormally and it may cause our system shut down sometimes
21st May 2017, 5:31 AM
Nandini Injarapu
Nandini Injarapu - avatar