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

This question deals with the Java 2 Standard Edition.

2006-06-18 10:14:47 · 4 answers · asked by tjhauck2001 2 in Computers & Internet Programming & Design

4 answers

Typically an error refers to some action that can not be recovered from. In terms of Java programming structures, Exception and Error are both children of the Throwable class. They are siblings. All classes that are derived from error relate to system malfunctions (i.e. LinkageError, ThreadDeath, VMError, AWTError) whereas exceptions can be rooted in many different causes.

2006-06-20 10:55:42 · answer #1 · answered by brownfreckles1977 2 · 0 0

I'm sure some where you can find a list off all expeptions and erros, but here is a short answer.

I think an execption is a know error. AKA an error with a specific number. Usually it happens when accessing data - like reading through a database loop, array, or something... then let's say your connection string has a typo on the database name, it is a known error - it knows that the database does not exist or access is denied.

Just know how to catch and throw them to prevent you program from crashing, and after proper testing you can even use the error/exeption numbers to bring up a custom detailied error message.

2006-06-18 10:23:22 · answer #2 · answered by timmytude 4 · 0 0

Ok im I think im right but a exception is something that the programmers knew could happen and probley has be programmed in to java so that it can stop the program. But and error could be a known problem but it is unfixable or it isn't known and it had problem with reading the class or the class has a glitch. It really depends cause I dont get your questoin. I dont know if you using a program or creating one.

2006-06-18 12:10:08 · answer #3 · answered by imvs07 2 · 0 0

well an exception is an error that might occur as the program is running that's why its necessary to catch all exceptions if possible.

2006-06-18 22:31:44 · answer #4 · answered by ice 1 · 0 0

fedest.com, questions and answers