Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

throw keyword in java

Generally JVM throws the exception and
we handle the exceptions by 
using try catch block. But there are
situations where we have to throw 
userdefined exceptions or runtime exceptions.
  In such case we use throw keyword 
to throw exception explicitly.

  Syntax : throw throwableInstance;

Source by sites.google.com #
 
PREVIOUS NEXT
Tagged: #throw #keyword #java
ADD COMMENT
Topic
Name
9+1 =