Course Solutions Uncategorized (Solved) : Package Test Class Main Public Static Void Main String Args Int X 1 2 Try Systemprintln X Q34188446 . . . .

(Solved) : Package Test Class Main Public Static Void Main String Args Int X 1 2 Try Systemprintln X Q34188446 . . . .

 

package test;

class Main {

public static void main(String[] args) {

int x = 1 / 2;

try {

System.out.println(x / x);

} catch (ArithmeticException e) {

System.out.println(e.getMessage());

}

}

}

What is the output in java

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

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

Related Post