Two Ways to Have Threads in Java
lextends Thread
lThread is a base class with threading capability.
limplements Runnable
lRunnable is an interface that requires method
lvoid run()
lThe latter is preferred, because it does not take away your ability to inherit from another class (multiple inheritance is not allowed in Java).
l