Multiple choice technology programming languages

Main is the only thread that runs when a Java program is started?

  1. True

  2. False

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

When a Java program starts, the JVM creates several threads beyond the main thread, including garbage collector threads and possibly other JVM-internal threads for monitoring, JIT compilation, and other runtime services. The main thread is just one of many threads running from the beginning.