✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Який буде результат компіляції та виконання фрагмента коду:
class MyClass2 {
public static void main(String args[]) {
int x = 0, y = 10;
try {
y /= x;
}
System.out.println(“/ by 0”);
catch (Exception e) {
System.out.println(“error”);
}
} }