"Exception Error Trapping" Please respond to the following:

Computer Science
Tutor: None Selected Time limit: 1 Day

No program will work 100% of the time. It is important for a program to be able to handle various types of unexpected errors. Try-Catch has multiple ways to trap the failures.

Jun 6th, 2015

undefined

When you use a try-catch block, you're essentially telling the compiler that you're going to take care of displaying the error messages--no built-in messages will show. Instead, whatever error prompts you include in the catch statements will show.

When I run your program, I see your error messages, but no built-in Java error messages; this is how it should be. Really, the errors are being thrown--but you're catching them, so Java doesn't display the default message on the console.


undefined
Jun 6th, 2015

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Jun 6th, 2015
...
Jun 6th, 2015
May 24th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer