I have a java program which implements runnable. In the body, I have Thread animator = new Thread(); and then animator.start(); The problem is that the run() method of my program does not execute. Am I missing something?
I have a java program which implements runnable. In the body, I have Thread
Share
As you said java program which implements runnable.
In that class ( name say Animator) body you have written
If i am not wrong
pass runnable class instance, here i think it would be
thiswhile creating thread