Interface java.lang.Runnable
All Packages This Package Previous Next
Interface java.lang.Runnable
-
public interface
Runnable
-
extends Object
This interface is designed to provide a common protocol for Objects
that want to execute code while they are active. For example, Runnable
is implemented by class Thread.
In addition, Runnable provides the means for a class to be active while
not subclassing Thread. A class that implements Runnable can run without
subclassing Thread by instantiating a Thread instance and passing itself in
as the target.
-
See Also:
-
Thread
-
Version:
-
1.8, 31 Jan 1995
-
Author:
-
Arthur van Hoff
-
run()
-
The method that is executed when a runnable object is activated.
run
public abstract void run()
-
The method that is executed when a runnable object is activated.
-
See Also:
-
run
All Packages This Package Previous Next