Q) If a priority of a java thread is 3 then the default priority of its child thread will be
  1. 0
  2. 1
  3. 5
  4. 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?
  1. isAlive()
  2. run ()
  3. alive ()
  4. keepAlive()

Answer: 1


Q) True statement about process and thread is/are
  1. If a child process crashes all main process will also be crashed
  2. If a child thread is crash entire process will crash
  3. Threads have their own memory stack
  4. Each process has different virtual space

Answer: 2, 3, 4


Q) Min and Max priority of a thread in Java multithreading are
  1. 1, 10
  2. 0,10
  3. 0,255
  4. 1,256

Answer: 1


Q) Which method we implement from Runnable interface?
  1. Run ()
  2. Start ()
  3. Execute ()
  4. call ()

Answer: 1


Related Posts