Interview Questions

What are the different ways to create a Thread?

Threads can be created in 2 ways.

1. Extend the Thread class and override the run() method with your business logic

2. Implement the Runnable interface and provide the implementation in the run() method.