Java OCA OCP Practice Question 2171

Question

Which is the correct way to start a new thread?

Select the one correct answer.

  • (a) Just create a new Thread object. The thread will start automatically.
  • (b) Create a new Thread object and call the method begin().
  • (c) Create a new Thread object and call the method start().
  • (d) Create a new Thread object and call the method run().
  • (e) Create a new Thread object and call the method resume().


(c)

Note

Create a new Thread object and call the method start().

The call to the start() method will return immediately and the thread will start executing the run() method asynchronously.




PreviousNext

Related