Showing posts with label ThrowableInstance. Show all posts
Showing posts with label ThrowableInstance. Show all posts

Thursday, 23 January 2014

throw EXCEPTIONS IN JAVA

Java:Using throw


When to use throw in a Java method declaration?

All methods use the throw statement to throw an exception. The throw statement requires a single argument: a Throwable object. Throwable object are instances of any subclass of the Throwable classThe flow of execution stops immediately after the throw statement;any subsequent statements are not executed.