PRO192_-_SU_2025_-_QUIZ2_3925.webp
Hữu Vinh

PRO192_-_SU_2025_-_QUIZ2_3925.webp

Question 12
Answer saved
Flag
question
What will be the output of below code snippet?
public class ExceptionDemo {
public static void main(String[] args) {
try {
int result 10 / 0;
System.out.println(result);
} catch (Arithmetic Exception e) {
System.out.println("Arithmetic Exception");
} finally {
System.out.println("Finally Block");
}
}
}
O a. Compilation Error
b. Arithmetic Exception Finally Block
O c. Finally Block
d. Arithmetic Exception
Clear my choice
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
Hữu Vinh
Ngày thêm
Lượt xem
274
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom