Java Multithreading

Java Multithreading

Professional Development

53 Qs

quiz-placeholder

Similar activities

Language Teaching Methods Quiz

Language Teaching Methods Quiz

Professional Development

53 Qs

REMEDIAL GRADE 7

REMEDIAL GRADE 7

Professional Development

50 Qs

10.Command line arguments + java

10.Command line arguments + java

Professional Development

48 Qs

Ағылшын тілі пәні мұғалімдеріне арналған аттестация сұрақтары

Ағылшын тілі пәні мұғалімдеріне арналған аттестация сұрақтары

Professional Development

55 Qs

Literary terms

Literary terms

KG - Professional Development

51 Qs

Present Simple & Progressive

Present Simple & Progressive

Professional Development

50 Qs

BR Advanced U3

BR Advanced U3

Professional Development

49 Qs

Unit 09

Unit 09

KG - Professional Development

50 Qs

Java Multithreading

Java Multithreading

Assessment

Quiz

English

Professional Development

Hard

Created by

ANIL KUMAR

Used 12+ times

FREE Resource

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

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?