Multiple choice

If all the child threads are destroyed, the main thread will automatically be destroyed.

  1. True

  2. False

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

The main thread is independent of child threads. Even if all child threads complete or are destroyed, the main thread continues to exist and run until it completes its own execution or is explicitly terminated. The JVM exits when all non-daemon threads complete, not just child threads.