A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Default Exception handler

Inside a method, if any exception occurs the method in which it arises is responsible for creating exception objects by including the following information:
Name of exception
Description of exception
Location at which exception occurs[stackTrace]


Default exception handler prints exception information in the following format and terminates program abnormally:

  • Exception in thread “main” Name of exception:Descriptions StackTrace 
  • Exception in thread “xxx” Name of exception:Descriptions StackTrace  
  • Here, xxx will be any method.

LEARN TUTORIALS

.

.