Skip to content
Sharp

Java Threading · interview question

How do Virtual Threads differ from traditional threads in handling blocking operations?

Multiple choiceMediumchapter-15-curatedpremiumjava-threadingvirtual-threads
Choose one answer
Answer and explanation

Correct answer

A. Virtual Threads yield the underlying OS thread during blocking operations.

Why

When a Virtual Thread encounters a blocking operation, the OS thread is released, allowing other tasks to proceed, which is managed by the JVM.

Test yourself on Java Threading

A free test with instant, explained results. No account needed.

Start free test
All Java Threading questions →