Introduction
Description }
catch(Throwable e)//throwable type
{
}
}[/java]
Only one catch gets executed which corresponds to the execution occurred.
Description
Example
Types
More Info
Syntax throw new ArithmeticException();
Whenever this statement is written in code, an exception by type Arithmetic Exception is thrown.One can develop user defined exception by creating a class, subclass to any of the exception type. If a subclass is created to runtime exception it will be under the category 'unchecked exception'. If a subclass is created to Exception class then it becomes 'checked exception'.
Example
Example
Key Points