What is the base class for all exceptions in Java?

Java Exception Handling MCQs

Quiz
•
Computers
•
12th Grade
•
Hard
DR MURTHY
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Object
Throwable
Exception
RuntimeException
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to manually throw an exception in Java?
throw
throws
try
catch
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a checked exception?
ArrayIndexOutOfBoundsException
IOException
NullPointerException
ArithmeticException
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which block is used to handle exceptions in Java?
finally
try
catch
throw
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if an exception is not handled in a Java program?
The program will terminate abnormally
The program will continue execution
The exception will be ignored
The program will enter an infinite loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an unchecked exception?
FileNotFoundException
IOException
NullPointerException
SQLException
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The finally block in Java is used for:
Handling exceptions
Ensuring code is executed whether an exception occurs or not
Declaring exceptions
Throwing exceptions
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Functions and Exceptions

Quiz
•
10th - 12th Grade
20 questions
Εξαιρέσεις στην Java

Quiz
•
12th Grade
20 questions
Python Unit 3 Comprehension Check (3,4,5,6)

Quiz
•
9th - 12th Grade
15 questions
Quiz - 10 on switch in C

Quiz
•
12th Grade
20 questions
Python Programming Quiz

Quiz
•
10th Grade - University
20 questions
Arrays in Java

Quiz
•
9th - 12th Grade
17 questions
Cuestionario de Certificación JS 2024

Quiz
•
12th Grade
20 questions
GR 12_DATA FILE HANDLING_SS

Quiz
•
12th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Computers
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade