Runnable
Noun · Development
Definitions
A functional interface in Java (java.lang.Runnable) with a single void run() method, representing a unit of work that can be executed by a thread or executor. It is the standard abstraction for passing executable code to Thread, ExecutorService, or CompletableFuture.
In plain English: A piece of code in Java that is packaged up to be run later, usually on a separate thread.
Example: "Pass a Runnable to the thread pool instead of subclassing Thread — it decouples the task from the execution mechanism."