Computer Science, asked by drrahanafathima, 9 months ago

Write the steps to create a thread using Thread class with an example.​

Answers

Answered by SamarSharma60
2

There are two ways to create a thread:

Extends Thread class. Create a thread by a new class that extends Thread class and create an instance of that class. ...

Implementing the Runnable Interface. The easiest way to create a thread is to create a class that implements the runnable interface.

Similar questions