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

Get Programmer's Guide to Java™ Certification, A: A Comprehensive Primer, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.