WorksheetsMultiThreading Quiz
Total questions: 15
Worksheet time: 15mins
Execution of a java thread begins on which method call?
Run ()
Start ()
Execute ()
Launch ()
How many ways a thread can be created in Java multithreading?
1
2
5
10
Which method is used to make main thread to wait for all child threads
Join ()
Sleep ()
Wait ()
Stop ()
Default value of a java thread is
0
1
5
10
If a priority of a java thread is 3 then the default priority of its child thread will be
0
1
5
3
Daemon thread runs in
BackGround
Foreground
Both
none
Which method is used to wait for child threads to finish in Java?
Wait ()
Sleep ()
Join ()
isAlive()
Which will contain the body of the thread in Java?
Start()
Run()
Main()
Execute()
The life cycle of a thread in java is controlled by
JRE
JDK
JVM
None
Which method is used to get current running thread object?
runningThread()
currentThread()
runnableThread()
None
Synchronized static methods acquire lock on
Class
Object
Interface
None
Thread priority in Java is?
Integer
Float
Double
Long
The life cycle of thread in JAVA is controlled by
JDK
JVM
JRE
None
In JAVA multi threading, a thread can be created by_______
Extending class
Implementing Runnable Interface
both
none
Which statements is/are correct
On calling Thread start ( ) method a new thread is created
Thread start( ) method call run( ) method internally
Thread run( ) method can also be called directly to create thread
both a & b
