In this tutorial, we will understand try-catch block in Java with the help of example programs. In the previous tutorial, we have known that when an error occurs within a method of program, the method creates an exception object and hand over it to the runtime system (JVM).