Multiple choice technology platforms and products

Which of the following are true about threads?

  1. Threads with higher priorities will have less execution time than those having lower priorities.

  2. Threads can be suspended using suspend() method or resumed using resume() method

  3. Threads have their own stack space

  4. When a thread sleeps, no other thread can run while its sleeping.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Each thread in Java has its own stack space for storing method calls and local variables. Threads with higher priority generally receive MORE execution time (not less). The suspend() and resume() methods are deprecated due to deadlock risks. When a thread sleeps, other threads CAN and do execute.