Java thread - MCQ

Java thread - MCQ

University

18 Qs

quiz-placeholder

Similar activities

DreamWeaver CS6

DreamWeaver CS6

University

20 Qs

DAA quiz2

DAA quiz2

University

15 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Chap 1: What is a program made of?

Chap 1: What is a program made of?

University

13 Qs

Programación Orientada a Objetos: Conceptos básicos

Programación Orientada a Objetos: Conceptos básicos

University

14 Qs

LA7.C7: Turtle Graphics

LA7.C7: Turtle Graphics

9th Grade - University

14 Qs

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

Revisão 2ª AV - Sistemas Operacionais

Revisão 2ª AV - Sistemas Operacionais

University

20 Qs

Java thread - MCQ

Java thread - MCQ

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Mohamed Ibrahim

Used 319+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Already have an account?