Java Reference
In-Depth Information
Syntax
throw Throwableinstance;
Throw
When this statement is used there is an immediate stop in the execution of program.
For example
Class throwdem
{
Static void demopro ( )
{
Try {
Throw new NullPointerException (“dem “);
Search WWH ::




Custom Search