
Java MCQs on Threads and Exceptions
Quiz
•
Other
•
University
•
Practice Problem
•
Medium
Niveditha N
Used 2+ times
FREE Resource
Enhance your content in a minute
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
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
20 questions
Photography Vocab Quiz
Quiz
•
9th Grade - University
20 questions
ADMG 4
Quiz
•
University
20 questions
ST WEEK 3 - AKM1 Gn 23/24
Quiz
•
University
20 questions
Kelas PHP
Quiz
•
University
20 questions
UTS - Struktur Data
Quiz
•
University
20 questions
IPC
Quiz
•
University
20 questions
Adulto mayor
Quiz
•
University
20 questions
Cognitive Approach BTEC
Quiz
•
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
