Search Header Logo

Java Multithreading

Authored by ANIL KUMAR

English

Professional Development

Used 12+ times

Java Multithreading
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

53 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of this method can be used to make the main thread to be executed last among all the threads?

stop()

sleep()

join()

call()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of this method is used to find out that a thread is still running or not?

run()
Alive()
isAlive()
checkRun()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of priority variable MIN_PRIORITY AND MAX_PRIORITY?

0 & 256
0 & 1
1 & 10
1 & 256

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these method waits for the thread to terminate?

sleep()
isAlive()
join()
stop()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these method is used to explicitly set the priority of a thread?

set()
make()
setPriority()
makePriority()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is synchronization in reference to a thread?

It’s a process of handling situations when two or more threads need access to a shared resource
It’s a process by which many thread are able to access same shared resource simultaneously
It’s a process by which a method is able to access many different threads simultaneously
It’s a method that allow too many threads to access any information require

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following Java code?https://gyazo.com/fd4b31bc3f58fa6bdfdbcf959af62ac5

My Thread

Thread[My Thread,5,main]

Compilation Error

Runtime Error

Access all questions and much more by creating a free account

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?