This following 2 programs are implemented with the same logic i.e, In one program, creating
thread by extending Thread class and the other by implementing Runnable interface.
Here the output will be like "Print some values till i press ENTER or RETURN key", My problem is, when i run these two programs "program where we are creating Thread by extending Thread class will by halted from
extending Thread class printing values till i Press ENTER/RETURN but "program where we are creating Thread with Runnable interface output is getting halted"
Here the logic is same in these two programs, only difference is one program extending Thread Class and implementing Runnable interface.
Creating Thread by extending Thread Class
Creating Thread by Implementing Runnable Interface
can anyone explain about output with above code.
Thanks in advance