
Exception Handling and Multithreading

Quiz
•
Professional Development
•
University
•
Hard
Mrs KEERTHIKA
Used 3+ times
FREE Resource
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
Similar Resources on Wayground
25 questions
Final Assessment C & C++ & DSA - 2nd August 24

Quiz
•
University
25 questions
1st Embedded & Ai T

Quiz
•
University
25 questions
Introduction to Alexa Skills and APIs

Quiz
•
10th Grade - Professi...
23 questions
Chapter 5: Digital and Social Media Marketing

Quiz
•
University - Professi...
23 questions
Test de PSInt

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Professional Development
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University