Possible Duplicate:
Java: “implements Runnable” vs. “extends Thread”
When should you use:
class MyThread extends Thread {
public void run() {
System.out.println("Important job running in MyThread");
}
public void run(String s) {
System.out.println("String in run is " + s);
}
}
over:
class MyRunnable implements Runnable {
public void run() {
System.out.println("Important job running in MyRunnable");
}
}
Obviously we instantiate these differently but is there any difference once they are created?