Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Creating a new thread by extending the Thread Class
public class MyThread extends Thread{
public void run()
{
//run code goes here
}
}
MyThread myThread = new MyThread();
myThread.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment