A question regarding Exceptions. Please SEE
Hi there,
I have a Question regarding 'Exceptions'.
If the code written,generates an ArithmeticException,
what exactly happens?
int x=20;
try{
x/0;
}catch(ArithmeticException aE){
}
ArithmeticException extends RuntimeException which extends Exception
which extends Throwable which extends Object.
So,the hierarchy is:
Object
Throwable
Exception
RuntimeException
ArithmeticException
Now,when the ArithmeticException is thrown in the above code,this class
calls its superclass passing the name of the exception in its constructor?
ie,ArithmeticException constructor will be
super("Arithmetic Exception");
Am I right till this point?
This goes on going upwards till Throwable is reached? ie each class's constructor
calls its superclass's constructor.
Am I right till this second point?
What HAPPENS which Throwable is reached?
Does Throwable's constructor call the Object's constructor?

