Java thread - MCQ

Java thread - MCQ

University

18 Qs

quiz-placeholder

Similar activities

Revisão 1ª AV - Sistemas Operacionais

Revisão 1ª AV - Sistemas Operacionais

University

20 Qs

IF Pagi - Quiz 2

IF Pagi - Quiz 2

University

20 Qs

Quiz PBO SIA

Quiz PBO SIA

University

20 Qs

Thread

Thread

University

20 Qs

Java Object Creation and Classes

Java Object Creation and Classes

University

20 Qs

Parallel and concurrent programming

Parallel and concurrent programming

University

23 Qs

coe java 24 june 21 7:30 to 745 pm only

coe java 24 june 21 7:30 to 745 pm only

University

20 Qs

Multithreading in java

Multithreading in java

University

20 Qs

Java thread - MCQ

Java thread - MCQ

Assessment

Quiz

Computers

University

Hard

Created by

Mohamed Ibrahim

Used 309+ 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?