Created
April 14, 2019 08:41
-
-
Save damithadayananda/df5d86fa845a63bac494614acc79aa65 to your computer and use it in GitHub Desktop.
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 annonymousClassUsingThreadClass { | |
public annonymousClassUsingThreadClass() { | |
Thread t = new Thread(){ | |
public void run(){ | |
System.out.println("anonymous thread"); | |
} | |
}; | |
t.start(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment