dat1/inf1, Autumn 2002
Location |
B3-104 |
Time |
November 1, 10.15-12.00 |
Subject |
An exception is when an unexpected situation occurs in a Java program. The program then raises exception that must be handled (caught) somewhere else in the program. Exception handling is built-in to the Java language and cannot ignored by the programmer as it can in other languages such as C++. This is a feature and one of the reasons many technicians state that the quality of Java programs are in general higher than to example C++ programs. The built-in exception handling is also quoted as being one of the reasons that programmers are more productive, i.e., more lines of code per hour, than comparable languages such as C++ and Pascal. |
Readings |
"Thinking in Java" Chapter 10 ("Error Handling with Exceptions"). |
Exercise |
|
Slides |
|
Links |
Best regards,
Kristian Torp