
Java Exception Handling
Authored by Sam Raj
Computers
University
Used 59+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Quiz ECIH Week 4
Quiz
•
University
20 questions
โครงการเพิ่มศักยภาพโปรแกรม Microsoft Power point
Quiz
•
University
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
15 questions
Firewall and Network Security
Quiz
•
University
18 questions
PBO Inheritance Episode 2
Quiz
•
University
12 questions
Porcentajes
Quiz
•
University
20 questions
FRAMING,Bit Stuffing, PPP,HDLC,
Quiz
•
University
10 questions
Seatwork for Data Storage
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade