
Java MCQs on Threads and Exceptions

Quiz
•
Other
•
University
•
Medium

Niveditha N
Used 1+ times
FREE Resource
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the correct way to start a thread?
run()
start()
execute()
launch()
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is the correct signature of the run method?
public void start()
public void run()
public int run()
void run()
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is multithreading?
Executing multiple programs
Executing multiple classes
Executing multiple threads concurrently
Executing functions sequentially
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which interface should a class implement to become a thread?
Runnable
Threadable
Thread
Run
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will happen if we directly call the run() method instead of start()?
Thread will start
Compile error
Runs as a normal method in main thread
New thread created
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which block is always executed whether an exception is handled or not?
catch
throw
try
finally
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What keyword is used to manually throw an exception?
throws
catch
throw
raise
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
20 questions
Android Club Event-1

Quiz
•
University
20 questions
CIE-1_DSA:Unit1&Unit2

Quiz
•
University
20 questions
QUIZ WEEK 6

Quiz
•
University
20 questions
LU 6 Auditing General & application controls quiz

Quiz
•
University
20 questions
Quanta

Quiz
•
University
21 questions
Quiz on .NET Core and C#

Quiz
•
University
19 questions
Quiz-day1-C

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Other
15 questions
Disney Trivia

Quiz
•
University
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University
20 questions
Disney Trivia

Quiz
•
University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
5 questions
Examining Theme

Interactive video
•
4th Grade - University
23 questions
Lab 4: Quizziz Questions

Quiz
•
University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University