java.lang · java.base · since Java 1.0
Runnable
@FunctionalInterface
public interface RunnableA no-argument, no-result task — the simplest functional interface, accepted by threads and executors everywhere.
Key methods
void run() | The task body. No checked exceptions — wrap or handle inside. |