<<< Thread -- Runnable -- Object     Index     The life cycle of a thread >>>

6. Two ways to create a thread


  1. Inherit the Thread class

  2. Implement the Runnable interface, then

     


<<< Thread -- Runnable -- Object     Index     The life cycle of a thread >>>