Home > DeveloperSection > Interviews > Explain how to create a thread and start it running.

Posted on    January-26-2015 10:55 PM

 Java Thread 
 1 Answer(s)
  526  View(s)
Rate this:

john rob

Total Post:11

Posted on    January-26-2015 11:55 PM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick