Java program to extends the Thread class
KW.java
Output
kodingwindow@kw:~$ javac KW.java
kodingwindow@kw:~$ java KW Thread Running... kodingwindow@kw:~$
What Next?
Java program for Runnable interface
Java program for getName(), getId() and getPriority() methods
Java program for join() and sleep() methods
Advertisement