O'Reilly logo

Programmer's Guide to Java™ Certification, A: A Comprehensive Primer, Second Edition by Rolf W. Rasmussen, Khalid A. Mughal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Review Questions

9.1 Which is the correct way to start a new thread?

Select the one correct answer.

  1. Just create a new Thread object. The thread will start automatically.

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

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

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

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

9.2 When extending the Thread class to provide a thread's behavior, which method should be overridden?

Select the one correct answer.

  1. begin()

  2. start()

  3. run()

  4. resume()

  5. behavior()

9.3 Which statements are true?

Select the two correct answers.

  1. The class Thread is abstract

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required