Mastering Java 2025 – 400 Free Practice Questions to Pass the 'Thinking in Java' Exam

Question: 1 / 510

What method is used to create a new thread in a thread pool using a ThreadFactory?

create(ThreadFactory factory)

newThread(Runnable r)

A new thread in a thread pool is created using the newThread(Runnable r) method, which is specifically designed for this task. Other choices such as create, build, and generate do not have anything to do with creating threads in a thread pool, and may be methods used for other purposes. Therefore, B is the correct answer for this question.

Get further explanation with Examzify DeepDiveBeta

build(ThreadFactory factory)

generate(ThreadFactory factory)

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy