Multiple choice technology web technology

Thread is a block of code which can execute concurrently with other threads in the JVM.

  1. True

  2. False

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

A thread in the JVM is indeed a separate path of execution that can run concurrently with other threads. Each thread has its own call stack but shares heap memory with other threads in the same process. This allows for parallel execution of tasks within a single program.

AI explanation

A thread is exactly that: an independent path of execution within a program that the JVM can schedule to run concurrently alongside other threads, sharing the same process memory. This concurrency is what lets a Java application perform multiple tasks — like handling I/O and computation — at (effectively) the same time.