An exception is an abnormal condition that has occurred in a piece of code. It may be refered to as error.
The java Exception is an object that describes an exceptional condition that has occurred in a piece of code. When an exceptional condition arises , an object representing that exception is caught and thrown in the method that caused it.
The exception can be generated by the java run-time system or they...