Please confirm this sentence, Whether it's correct or not. I got it from a web.
We can only invoke the start() or stop() methods, when the thread is in New thread state. Calling any method besides start() or stop() will cause an IllegalThreadStateException.
But, my opinion is:
Here, the threads will run sequentially, first
thread one runs, when it exists, the thread two starts.
Here, the start() method call run() asynchronously (doesn't wait for any result, just fire up an action), while we run run() method synchronously. we wait when it quits and only we can run the next line of our code.
Please correct, if I wrong! Thanks in Advanced!