30
"Implementa Runnable" vs "estende o Thread" em Java
Desde que tempo passei com threads em Java, encontrei estas duas maneiras de escrever threads: Com implements Runnable: public class MyRunnable implements Runnable { public void run() { //Code } } //Started with a "new Thread(new MyRunnable()).start()" call Ou, com extends Thread: public class MyThread extends Thread { public MyThread() …