| Package java.lang |
Previous |
Java API |
Index |
Next |
public interface java.lang.Runnable
{
// Methods
public abstract void run();
}
The Runnable interface should be implemented by any class whose instances are intended to be executed by a thread . The class must define a method of no arguments called run.
See Also Thread .
public abstract 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.
See Also: run in class Thread .
| © 1996 Sun Microsystems, Inc. All rights reserved. |