
Exception Handling and Multithreading
Quiz
•
Professional Development
•
University
•
Hard
Mrs KEERTHIKA
Used 3+ times
FREE Resource
Enhance your content
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What should the return type of method where there is no return value?
String s=null;
NullPointerException
Handles Exception
ArithmeticException
None of the above
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What causes the program to exit abruptly and hence its usage should be minimalistic?
Try
finally
Exit
catch
Answer explanation
In case of exit, the program exits abruptly hence would never be able to debug the root cause of the issue
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which one of the following causes memory leak?
Release database connection when querying is complete
Use Finally block as much as possible
Release instances stored in static tables
Not using Finally block often
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can we execute multiple exceptions at a time
Yes
No
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of these is a super class of all exceptional type classes?
String
Runtime exceptions
Throwable
Cacheable
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Match the following according to choices for the below code
1.try{
}
catch(Exception e){ }
2.try{
int a=100,b=0,c;
c=a/b;}
catch(ae){}
3.try{
int a[]=new int[10];
a[50]=100;}
catch(Aie)
4.NullPointerException
5.BufferedReader
3.Exception
5.ArithmeticException
4.ArrayIndexOutOfBoundsException
2.Strings=null
1.BufferedReader
2.Exception
3.ArithmeticException
4.ArrayIndexOutOfBoundsException
5.Strings=null
1.BufferedReader
1.Exception
3.ArithmeticException
5.ArrayIndexOutOfBoundsException
4.String s=null
2.BufferedReader
1.Exception
2.ArithmeticException
3.ArrayIndexOutOfBoundsException
4.String s=null
5.BufferedReader
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java code?
class exception_handling{
public static void main(String args[])
{
try
{
System.out.print("Hello" + " " + 1 / 0);
}
finally
{
System.out.print("World");
}
}
}
Hello
World
Compilation error
First Exception then World
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
24 questions
WebTech 2025 Intro quiz
Quiz
•
University
25 questions
Pre-Test Training Dec.2021
Quiz
•
KG - Professional Dev...
25 questions
Job Qualifications
Quiz
•
8th Grade - Professio...
25 questions
Repaso Unidades I-II Sistema de Medición del Talento Humano
Quiz
•
University - Professi...
25 questions
Patient Safety and Reporting in Canada
Quiz
•
University
30 questions
CISCO PLACEMENT PREPARATION TEST-1 St. JOSEPH'S @ 26TH MARCH 25
Quiz
•
University
30 questions
Sensorial Education
Quiz
•
University
24 questions
critical thinking
Quiz
•
10th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Professional Development
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
