new is used to create instance of an exception. All of java's built in run-time exceptions have two constructors : one with no parameters and one that takes a string parameter.
throw
Throwable
If a method is capable of causing an exception that it does not handle. It must specify this behaviour the behaviour so that callers of the method can guard themselves against that exception. This is done by using throws clause in methods declaration.
Default handler
Exceptions in java are run-time errors.
Exceptional handling is managed via 5 keywords “ try, catch, throws, throw and finally.
throw
If an exception occurs within the try block, it is thrown and cached by catch block for processing.
try