Question: what is difference between thread class and runnable interface in java?
Answer: Key Differences Between Thread and Runnable in Java Each thread created by extending the Thread class creates a unique object for it and get associated with that object. On the other hand, each thread created by implementing a Runnable interface share the same runnable instance.