Java Quiz

Java Quiz

University - Professional Development

30 Qs

quiz-placeholder

Similar activities

UAS - Pemrograman Berorientasi Objek

UAS - Pemrograman Berorientasi Objek

University

25 Qs

Тест на знание C#

Тест на знание C#

University

25 Qs

Java

Java

University

25 Qs

Web Mania - (Round 1)

Web Mania - (Round 1)

University

25 Qs

1. Intro to Java

1. Intro to Java

University

25 Qs

core java 2

core java 2

Professional Development

25 Qs

Error Handling Pada Java

Error Handling Pada Java

University

25 Qs

Java Collections

Java Collections

University

31 Qs

Java Quiz

Java Quiz

Assessment

Quiz

Computers, Professional Development, Other, Education

University - Professional Development

Medium

Created by

Rameswar Gprec

Used 5+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

1

2

5

10

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which will contain the body of the thread in Java?

Start()

Run()

Main()

Execute()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The life cycle of a thread in java is controlled by

JRE

JDK

JVM

None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to get current running thread object?

runningThread()

currentThread()

runnableThread()

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Thread priority in Java is?

Integer

Float

Double

Long

6.

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

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Start ()

Run ()

Execute ()

Launch ()

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?