Skip to content

Instantly share code, notes, and snippets.

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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment