Q) If a priority of a java thread is 3 then the default priority of its child thread will be
- 0
- 1
- 5
- 3
Answer: 4
The default thread priority of a child thread is same as what parent thread has.
Q) Which method is used to check if a thread is running?
- isAlive()
- run ()
- alive ()
- keepAlive()
Answer: 1
Q) True statement about process and thread is/are
- If a child process crashes all main process will also be crashed
- If a child thread is crash entire process will crash
- Threads have their own memory stack
- Each process has different virtual space
Answer: 2, 3, 4
Q) Min and Max priority of a thread in Java multithreading are
- 1, 10
- 0,10
- 0,255
- 1,256
Answer: 1
Q) Which method we implement from Runnable interface?
- Run ()
- Start ()
- Execute ()
- call ()
Answer: 1