How To Exception Interrupt Program In java

In this  program exception occur during  the execution ,statement i/j. Normal execution of this program interrupt and program goes terminate.

public class simple_example {

public static void main(String[] args) {
int i=10;
int j=0;


Exception in thread “main” java.lang.ArithmeticException: / by zero
at exception_handling.simple_example.main(

Leave a Reply

Your email address will not be published. Required fields are marked *

4 + 5 =