Created
August 8, 2017 09:51
Thread usage1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyThread extends Thread { | |
public MyThread() { | |
super("MyThread"); | |
} | |
public void run() { | |
System.out.println("Thread run() method executed."); | |
} | |
} | |
//Started with a "new MyThread().start()" call |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment