200+ câu trắc nghiệm Lập trình cho di động có đáp án - Phần 5

Đầu ra của đoạn code sau là gì?javaclass exception_handling {public static void main(String args[]) {try {System.out.print("Hello" + " " + 1 / 0);} catch(ArithmeticException e) {System.out.pr

33/40

Đầu ra của đoạn code sau là gì?

class exception_handling {

public static void main(String args[]) {

try {

System.out.print("Hello" + " " + 1 / 0);

} catch(ArithmeticException e) {

System.out.print("World");

}

}

}

Hello

World

HelloWorld

Hello World

Giải thích

Chọn đáp án B