Difference between Thread' run by start method or simple run.
Thread t1 = new Thread() {public void run() { System.out.println("run of t1");}};What is the difference of calling t1.run() and t1.start() ? Both give same output .
# 1
Calling run is just another method call. There's no additional thread of execution created--no concurrency.When you call start, the VM spawns another thread of execution, that runs concurrently with the other existing threads, executing the run method.