|
What does the "18" mean in
A good answer might be:It is the line number in the program where the exception occured. |
Checked Exceptions
Remember that it is really bytecode that is executing, not acutal
Java source code.
However the bytecode file contains information about how lines of
source code and bytecodes.correspond.
The other line numbers (for Some exception types are checked exceptions, which means that a method must do something about them. The compiler checks each method to be sure that it does. There are two things a method can do with a checked exception:
For example, an
The reserved word throws is used to say that this method
does not catch the |
QUESTION 5:(Thought question: ) What happens to the exception when it is thrown to the Java runtime system? Click Here after you have answered the question |