True statement??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

True statement???

if u don't catch exception shut down -1answer is good practice-2answer

4th Jun 2018, 11:16 AM
RP. SANTHOSH
RP. SANTHOSH - avatar
2 Answers
+ 2
Yes, it is good practice to catch exceptions, which can avoid the program from shutting down, as well as (if you do System.out.println()) could possibly tell you the exception.
4th Jun 2018, 12:32 PM
Andre Daniel
Andre Daniel - avatar
+ 1
Thank u Mr. Andre
5th Jun 2018, 10:02 AM
RP. SANTHOSH
RP. SANTHOSH - avatar