✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Який буде результат компіляції та запуску наступного фрагмента коду?
public class X {
public static void main(String [] args) {
try {
badMethod();
System.out.print("A");
} catch (RuntimeException ex) {
System.out.print("B");
} catch (Exception ex1) {
System.out.print("C");
} finally {
System.out.print("D");
}
System.out.print("E");
}
public static void badMethod() {
throw new RuntimeException();
}
}