Hi everybody, I am Krishna, I have written this code on Threads, I don't know why this is not working, it is not giving a compile time error or run time error. The run() is not being executed.
The code is
Can anybody tell me what is wrong in this code. Thanks in advance. Have a nice day.
There is no rule that we all should know everything. Lets learn few things of everything here.
Hi Dittmer, I removed that lines and executed it again, but the run method is not being executed.
The output is 0123456789 with a delay of 500 milliseconds
There is no rule that we all should know everything. Lets learn few things of everything here.
That's a very uncommon use of threads. I'd recommend using the normal way... If you come to the chapter "executors" you'll understand why you should...