default exception handling in java

Solutions on MaxInterview for default exception handling in java by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "default exception handling in java"
Andre
18 Oct 2018
1When JVM detects exception causing code, it constructs a new exception 
2handling object by including;
31) Name of Exception
42) Description about the Exception
53) Location of Exception.
6After creation of object by JVM it checks whether there is exception 
7handling code or not. If there is exception handling code then exception 
8handles and continues the program. If there is no exception handling code 
9JVM give the responsibility of exception handling to default handler and 
10terminates abruptly.
11
12Default Exception handler displays description of exception,prints the 
13stacktrace and location of exception and terminates the program.
14Note: The main disadvantage of this default exception handling is 
15program terminates abruptly.