
Exception Handling and Multithreading
Authored by Mrs KEERTHIKA
Professional Development
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
22 questions
BCS Network Security Test 8
Quiz
•
University - Professi...
22 questions
Week 2 Quiz: Scientific Management Theory
Quiz
•
University
24 questions
BCS Network Security Test 6
Quiz
•
University - Professi...
25 questions
Training & Development
Quiz
•
University
24 questions
CBS 1063 Introduction to Public Speaking
Quiz
•
University
24 questions
COL 105 Test 1 Review
Quiz
•
University
25 questions
Q1: Systems Integration II
Quiz
•
University
25 questions
Riddles
Quiz
•
KG - 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Professional Development
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University