There are 2 ways of writing Threads in Java:
public class myRunnable implements Runnable {
public void run() {
//Code
}
}
Or, with extends Thread:
public class myThread extends Thread {
public myThread() {
super("myThread");
}
public void run() {
//Code
}
}
What are the significant differences in these two blocks of code?