Multithreading in java

Multithreading in java

University

20 Qs

quiz-placeholder

Similar activities

Threads and Process

Threads and Process

University

20 Qs

JDBC

JDBC

University

20 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

MultiThreadingjava

MultiThreadingjava

University

20 Qs

Ex 9 Java MultiThreading

Ex 9 Java MultiThreading

University

20 Qs

ADVANCE JAVA

ADVANCE JAVA

University

20 Qs

MODULE 4

MODULE 4

University

22 Qs

Java Programming

Java Programming

University

20 Qs

Multithreading in java

Multithreading in java

Assessment

Quiz

Computers

University

Medium

Created by

Suchismita Rout

Used 475+ times

FREE Resource

20 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 method is used to make main thread to wait for all child threads

Join ()

Sleep ()

Wait ()

Stop ()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which will contain the body of the thread in Java?

Start()

Run()

Main()

Execute()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The life cycle of a thread in java is controlled by

JRE

JDK

JVM

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to get current running thread object?

runningThread()

currentThread()

runnableThread()

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Synchronized static methods acquire lock on

Class

Object

Interface

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Thread priority in Java is?

Integer

Float

Double

Long

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?