Sale!

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

$ 16.00

Answer to package test; class Main { public static void main(String[] args) { int x = 1 / 2; try { System.out.println(x / x); } ca…

SKU: 7cb57cbbb11e Category:

Description

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