Skip to content
Sharp

Java Threading · interview question

Which method would you use to create a Virtual Thread in Java?

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

Correct answer

B. Thread.ofVirtual().start()

Why

The method Thread.ofVirtual().start() is used to create and start a new Virtual Thread in Java.

Test yourself on Java Threading

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

Start free test
All Java Threading questions →