EXPLAIN HOW TO CREATE A THREAD AND START IT RUNNING.

john rob

Total Post:11

Points:55
Posted by  john rob
Thread 
 594  View(s)
Ratings:
Rate this:
  1. john rob

    Post:11

    Points:55
    Explain how to create a thread and start it running.

    There are 2 ways in which a thread can be created.
    By extending the Thread class wherein the subclass needs to override the run method. Then just an instance of that class needs to be created and [classname].start() would start it running.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!