As per my understanding, when i call start() method it will call run method itself.
We can do the same thing by calling run() method . Is it ?
Like we have :
public class ThreadTest extends Thread{
public static void main(String[] args) {
ThreadTest t = new ThreadTest();
t.run();
}
}
public class ThreadTest extends Thread{
public static void main(String[] args) {
ThreadTest t = new ThreadTest();
t.start();
}
}
What is the difference between both of them?