Different ways of creating Thread
There are 2 ways to create a Thread in java
Extending Thread class
Implementing Runnable Interface
1. By Extending the Thread Class
class Multithread extends Thread{
public void run(){
System.out.println("thread is running...");
}
pub...
sunilkiran.hashnode.dev2 min read