That's all about thedifference between extends Thread and implements Runnable in Java. You can clearly see that implementing Runnable is better than Thread in most of the cases except one where you quickly want to test something. Stick with best practice and encapsulate the code with a Runnable...