Mastering Java: The Ultimate Quiz for 'Thinking in Java'

Disable ads (and more) with a membership for a one time $2.99 payment

Mastering Java: The Ultimate Quiz for 'Thinking in Java'. Dive deep into Java with multiple-choice questions. Challenge yourself with quiz questions designed to test and improve your understanding of the 'Thinking in Java' book. Get ready for your exam!

Practice this question and more.


Which method would you use to start a previously created thread?

  1. init()

  2. begin()

  3. start()

  4. run()

The correct answer is: start()

Once a thread is created, the start() method is used to set the thread in motion and allow it to execute concurrently with the main thread. The init(), begin(), and run() methods are not valid options for starting a thread. The init() method is used to initialize the thread, the begin() method has been deprecated and should not be used, and the run() method is used to execute code within the thread, but it does not start the thread. Therefore, the correct method to use in order to start a previously created thread is the start() method.