TOC  This Package  Prev  Next  Index  

§1.63 Interface Runnable

public interface java.lang.Runnable
{
    public abstract void run();	§1.63.1
}
A class implements the Runnable interface to indicate that its instances are intended to be executed by a thread. All that is re

The Runnable interface should be implemented by any class whose instances are intended to be executed by a thread (§1.19). The class must define a method of no arguments called run.

See Also:
Thread (§1.19)

Methods

run
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 (§1.19.30)



Java API Document
Last edited by dkramer on April 11, 1996
Copyright © 1996 Sun Microsystems, Inc. Send any comments or corrections to dkramer@sun.com