|
|
|
| Java Articles Home » Class Definition » [ Exceptions ] |
| 1. Use exceptions with care (6/14/99) | |
| Author: | Java Q&Amp;A Experts |
| URL: | http://www.javaworld.com/javaworld/javaqa/1999-06/04-exceptions.html? |
| Summary: | Our Java Q&A experts explain why exceptions should be used only when necessary. (225 words) | /tr>
| 2. When catching exceptions, don't cast your net too wide | |
| Author: | Dave Schweisguth |
| URL: | http://www.javaworld.com/javaworld/javatips/jw-javatip134.html? |
| Summary: | In contrast to some other languages, Java's simplicity and consistency allow compilers to detect many more errors. Java developers learn to rely on their compilers to catch assignments to incorrect types, calls of nonexistent methods and-this article's topic-incorrect exception handling. But situations still crop up where you really need to know what you're doing. If you understand exactly how Java allows you to throw and catch exceptions, you'll know when you need to be extra careful and what practices can keep you out of trouble. (1,700 words; February 14, 2003) | /tr>
| 3. Try to catch me | |
| Author: | Tony Sintes |
| URL: | http://www.javaworld.com/javaworld/javaqa/2001-07/04-qa-0727-try.html? |
| Summary: | Does exception handling impair performance? | /tr>
| 4. Breaking Java exception-handling rules is easy | |
| Author: | Vladimir Roubtsov |
| URL: | http://www.javaworld.com/javaworld/javaqa/2003-02/02-qa-0228-evilthrow.html? |
| Summary: | Did you know that any Java method can throw arbitrary checked exceptions without declaring them? | /tr>
| 5. Exceptions: Don't get thrown for a loss | |
| Author: | Tony Sintes |
| URL: | http://www.javaworld.com/javaworld/javaqa/2002-02/01-qa-0208-exceptional.html? |
| Summary: | Catch the differences between checked and runtime exceptions | /tr>