java.lang

Interface Runnable

public interface Runnable

Runnable is an interface you implement to indicate that your class can be executed as the main part of a Thread, among other places. When you want an entry point to run a piece of code, implement this interface and override run.

Since: 1.0

See Also: Thread

UNKNOWN: updated to 1.4

Method Summary
voidrun()
This method will be called by whoever wishes to run your class implementing Runnable.

Method Detail

run

public void run()
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.