java.lang · java.base · since Java 1.0

Runnable

declaration
@FunctionalInterface
public interface Runnable

A 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.