Runnable

Name

Runnable

Synopsis

Description

The Runnable interface declares the run() method that is required for use with the Thread class. Any class that implements the Runnable interface must define a run() method. This method is the top-level code that is run by a thread.

Interface Declaration

public interface java.lang.Runnable {
 // Methods public abstract void run();
}

Methods

run

public abstract void run()

See Also

Thread; ThreadGroup; Threads 8