MultiThreading in Java

How to create thread There are two ways to create a thread: By extending Thread class By implementing Runnable