Java Exception Handling

Java Exception Handling

University

15 Qs

quiz-placeholder

Similar activities

Web quiz 1 - HTML/CSS

Web quiz 1 - HTML/CSS

University

20 Qs

2025 python class first quiz

2025 python class first quiz

9th Grade - University

10 Qs

Software Engineering Quiz 1

Software Engineering Quiz 1

University

20 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

Python List

Python List

4th Grade - University

15 Qs

Python MCQ

Python MCQ

University

20 Qs

Visualisasi data

Visualisasi data

8th Grade - University

20 Qs

WML & WAP

WML & WAP

University

20 Qs

Java Exception Handling

Java Exception Handling

Assessment

Quiz

Computers

University

Hard

Created by

Sam Raj

Used 54+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the advantage of Exception Handling

To avoid abnormal termination of a program

To find out errors

To Debug program

None of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the parent class of All Exceptions in JAVA

Throw

Exception

Error

Bug

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following key word is optional in Exception handling program

try

catch

finally

throw

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the purpose of 'throw' keyword

To Raise an exception explicityly

To Raise an exception implicityly

To create user defined exceptions

To create custom exceptions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Exception classes belongs to following package

import java.io.*

import java.lang.*

import java.util.*

import java.lang.Exception.*

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to create our own exception

using 'throw' keyword

using 'throws' keyword

using 'finally' keyword

using 'throwable' keyword

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Choose an exception if attempt to divide number by zero


int number = 89 / 0;

System.out.println("The answer is " + number);

ArithmeticException

NullPointerException

NumberFormatException

ArrayIndexOutOfBoundException

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?