How many ways are there to create threads in Java?
You can create a class that extends Thread class.
You can create a class that implements Runnable interface.
You can use either option 1 or option 2.
You have to use both option 1 and 2, to create threads in java.
There are two ways to create threads in java. You can use any one of them.
1. By extending Thread class
2. By implementing Runnable interface.
Back To Top