Q) If a priority of a java thread is 3 then the default priority of its child thread will be
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?
- run ()
- alive ()
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
Q) Which method we implement from Runnable interface?
- Run ()
- Start ()
- Execute ()
- call ()
MCQ- Java thread