The method in which exception is raised is responsible to create "Exception object"
by including following information:
1. Name of exception :
2. Description of exception :
3. Location at which exception occurs [Stack trance]
After creating exception object method handover to JVM
JVM will check whether method contains any Exception handling code or not.
If not then it destroy the method and remove entry from stack and handover the object to "Default exception handler"
"Default exception handler" simply prints the exception.
No comments:
Post a Comment