Re: handling work in Java
There are two ways to handle errors and exceptions in Java. You must do at least one of them. Either,
1) handle it with the "try" and "catch" keywords,
2) declare that it might be thrown with a "throws" keyword,
3) some errors and exceptions are meant to halt the execution of your program. These are called "fatal" because the program needs to be corrected.
|