public interface Runnable
The implmenting class must define a single method Run which takes no arguments and returns nothing. This method will be called by a thread when the thread is started.
Modifier and Type | Method and Description |
---|---|
void |
run()
When an object implementing interface
Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread. |