English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1 answers

The advantage of error handling is that your program doesn't explode when it sees something that it shouldn't. Error handling allows you to tell your program how it should react in those situations. The program may still have to close, but you can make it do so more gracefully (clean up data, close database connections/file pointers, etc.)

The only real disadvantage is it makes your code a bit larger, but it is a critical trade off, especially for more mission critical applications.

2006-07-01 10:07:34 · answer #1 · answered by John J 6 · 1 0

fedest.com, questions and answers