1.

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

Answer»

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.



Discussion

No Comment Found