Package java.lang
Interface Runnable
- All Known Subinterfaces:
RunnableFuture<V>,RunnableScheduledFuture<V>
- All Known Implementing Classes:
DelegatedTask,DeleteOnExit,ForkJoinWorkerThread,FutureTask,IncrementalSAXSource_Filter,Job,NamedRunnable,RefQueueWorker,Thread,TimerTask,TransformerImpl
public interface Runnable
Represents a command that can be executed. Often used to run code in a
different
Thread.-
Method Summary
Modifier and Type Method Description voidrun()Starts executing the active part of the class' code.
-
Method Details
-
run
void run()Starts executing the active part of the class' code. This method is called when a thread is started that has been created with a class which implementsRunnable.
-