Java MCQs on Threads and Exceptions

Java MCQs on Threads and Exceptions

University

24 Qs

quiz-placeholder

Similar activities

TECHTRIX2025 BUGHUNT SET1

TECHTRIX2025 BUGHUNT SET1

University

20 Qs

Season 5 #Spaic Python Weekly Quiz

Season 5 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Funções e Estruturas - Matrizes & Strings & Apontadores

Funções e Estruturas - Matrizes & Strings & Apontadores

9th Grade - Professional Development

24 Qs

C Programming

C Programming

12th Grade - University

25 Qs

Round 3: Coding Round

Round 3: Coding Round

University

24 Qs

round 2

round 2

University

25 Qs

Java Booleans FQ1

Java Booleans FQ1

University

20 Qs

Java Programming Quiz for swapna

Java Programming Quiz for swapna

University

20 Qs

Java MCQs on Threads and Exceptions

Java MCQs on Threads and Exceptions

Assessment

Quiz

Other

University

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?