Package java.lang
Interface Runnable
-
- All Known Subinterfaces:
RunnableFuture<V>,RunnableScheduledFuture<V>
- All Known Implementing Classes:
DeleteOnExit,ForkJoinWorkerThread,FutureTask,NamedRunnable,Thread,TimerTask
public interface RunnableRepresents a command that can be executed. Often used to run code in a differentThread.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrun()Starts executing the active part of the class' code.
-