Java thread - MCQ

Java thread - MCQ

University

18 Qs

quiz-placeholder

Similar activities

Parallel Computing

Parallel Computing

University

22 Qs

java multithread exception

java multithread exception

University

13 Qs

Multithreading

Multithreading

University

21 Qs

WTN-3-QUIZ-THREAD

WTN-3-QUIZ-THREAD

University

15 Qs

Envistas - Technical Quiz - Round 1

Envistas - Technical Quiz - Round 1

University

15 Qs

JAVA11

JAVA11

University

15 Qs

Java Multithreading

Java Multithreading

University

20 Qs

Java thread - MCQ

Java thread - MCQ

Assessment

Quiz

Computers

University

Hard

Created by

Mohamed Ibrahim

Used 313+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q) In java multi-threading, a thread can be created by

Extending Thread class

Implementing Runnable interface

Using both

None

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q) Which method is called internally by Thread start() method?

execute()

run()

launch()

main()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q) What is maximum thread priority in Java

10

12

5

8

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q) Which method must be implemented by a Java thread?

run()

execute()

start()

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q) Number of threads in below java program is

public class ThreadExtended extends Thread {


public void run() {

System.out.println("\nThread is running now\n");

}


public static void main(String[] args) {


ThreadExtended threadE = new ThreadExtended();


threadE.start();

}

}

0

1

2

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q) Execution of a java thread begins on which method call?

Start ()

Run ()

Execute ()

Launch ()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q) How many ways a thread can be created in Java multithreading?

1

2

3

4

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?