Which the preferred way to write multithread programe ?
Extend Thread class
Implement Runnable interface
Both
None