When will a thread start performing a task?

Report a typo

You have a class named PrintMessageTask that implements the Runnable interface. This class is declared to print a message to the standard output in a new thread.

In the main method of a program, there is one object of this class and one thread based on this object.

Runnable task = new PrintMessageTask("Hi, I'm good.");
Thread worker = new Thread(task);

When will the message be printed?

Select one option from the list
___

Create a free account to access the full topic