Java thread - MCQ

Java thread - MCQ

University

18 Qs

quiz-placeholder

Similar activities

Processing Quiz

Processing Quiz

University

13 Qs

IGH Test de Entrada

IGH Test de Entrada

University

20 Qs

Relational Algebra and Calculus

Relational Algebra and Calculus

University

20 Qs

Lógica Programação - For, While, Do While

Lógica Programação - For, While, Do While

10th Grade - University

14 Qs

2.GRADE STORY 5

2.GRADE STORY 5

2nd Grade - University

15 Qs

Quiz No. 2  - Unit II

Quiz No. 2 - Unit II

University

20 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

c.i.s.c.o

c.i.s.c.o

University

20 Qs

Java thread - MCQ

Java thread - MCQ

Assessment

Quiz

Computers

University

Hard

Created by

Mohamed Ibrahim

Used 316+ 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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?