I have a question related to the below question. I am a new bee in Java Threading, so any help will be appreciated.
After making the below modification to the program, why the program waited for 10seconds. The thread which should wait is the one (i.e t) where we invoked wait(10000), not on main. Why main-thread got waited for 10 seconds?