
Exception Handling in JAVA
Authored by SOBHANBABU SOBHANBABU
Professional Development
Used 92+ 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 CHOICE QUESTION
30 sec • 1 pt
try block may or may not contains catch blocks
True
False
5.
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
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following exceptions class belongs to Checked Exception
ArithmeticException
ClassNotFoundExceptions
ClassCastException
ArrayIndexOutOfBoundsException
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class IT
{
static public void main(String...args)
{
int k=Integer.parseInt(args[0]);
System.out.println(k);
}
}
if args[0]="gec" then what type of exception is thrown by the above program.
NumberFormatException
NullPointerException
ArrayIndexOutOfBoundsException
InvalidStringException
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?