How exceptions are handled in java?
Exception handing In Java:
A java exception is an object which describes an exceptional condition which has occurred in a piece of code. While an exceptional condition occurs, an object expressive that exception is created and thrown in the method which causes the error. This method may select to handle the exception itself or may pass this on. Either method, at several point exception is caught and processed.
Java exception handling is managed through five keywords: catch, try, throw, finally and throws.