Cái gì là một ngoại lệ trong Java?

Java Exception Handling Quiz

Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
Hoang Khoa
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Một lỗi biên dịch
Một sự kiện không mong muốn trong quá trình thực thi chương trình
Một loại biến
Một phương pháp lưu trữ dữ liệu
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Trong số các ngoại lệ sau, ngoại lệ nào là checked exception?
ArrayIndexOutOfBoundsException
NullPointerException
ArithmeticException
IOException
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Từ khóa 'throw' trong Java có tác dụng gì?
Tạo một lớp ngoại lệ mới
Khai báo một ngoại lệ
Ném một ngoại lệ một cách rõ ràng
Bắt một ngoại lệ
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Khối nào luôn được thực thi sau khối try-catch?
khối try
khối catch
khối finally
khối throw
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Các loại ngoại lệ nào not checked tại compile time?
Syntax exceptions
Runtime exceptions
Logical exceptions
Checked exceptions
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Mục đích của khối 'finally' là gì?
Để thực thi mã bất kể có ngoại lệ hay không
Để xử lý ngoại lệ
Để khai báo ngoại lệ
Để ném ngoại lệ
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Ví dụ nào sau đây là một ngoại lệ không được kiểm tra?
ClassNotFoundException
ArithmeticException
SQLException
IOException
Create a free account and access millions of resources
Similar Resources on Quizizz
22 questions
ÔN TẬP CRV1

Quiz
•
6th Grade - University
19 questions
Lưu trữ và chia sẻ tệp tin bài 6 tin 11 ict

Quiz
•
11th Grade - University
20 questions
Tin 11 Bài 10 KNTT

Quiz
•
11th Grade - University
20 questions
Câu hỏi về CSS

Quiz
•
12th Grade
15 questions
Ôn Tập Môn Tin Học Lớp 3

Quiz
•
3rd Grade - University
15 questions
Bài 29

Quiz
•
10th Grade - University
19 questions
Ôn tập HKI Tin học - Khối 5

Quiz
•
5th Grade - University
24 questions
ÔN TẬP TIN HỌC 5 HK2

Quiz
•
5th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade