0

Which of the following statements are true?

1)We cannot catch any exceptions. 2)If we don't catch exceptions, the program can shut down. 3)Exceptions catching improve program interface design Can someone tell me why the 2 statement is true and also explain why the 3 is false?

24th Mar 2021, 10:41 PM
Zotta
Zotta - avatar
1 Odpowiedź
+ 2
Statement 2 is true Lets assume you made a simple calculator which dont have any catching of exceptions. If you divide it with 0,it will show an error naming 'ZeroDivisionError' and hence it will make your app and program to stop. Statement 3 is false Interface design means how app or software looks. The proper name is User Interface also know as UI/UX . Exception catching won't affect the look of the program but it will help program to run more effectively.
25th Mar 2021, 5:07 AM
Nihar Buliya
Nihar Buliya - avatar