## Uses of Interface
java.lang.Runnable

- Packages that use Runnable
  Package | Description
  --- | ---
  java.lang |
  java.util |
  java.util.concurrent |

- - ### Uses of Runnable in java.lang

    Classes in java.lang that implement Runnable
    Modifier and Type | Class and Description
    --- | ---
    `class` | `Thread` A thread is a thread of execution in a program.

    Constructors in java.lang with parameters of type Runnable
    Constructor and Description
    `Thread(Runnable target)` Allocates a new `Thread` object.
    `Thread(Runnable target, String name)` Allocates a new `Thread` object.

  - ### Uses of Runnable in java.util

    Classes in java.util that implement Runnable
    Modifier and Type | Class and Description
    --- | ---
    `class` | `TimerTask` A task that can be scheduled for one-time or repeated execution by a Timer.

  - ### Uses of Runnable in java.util.concurrent

    Methods in java.util.concurrent with parameters of type Runnable
    Modifier and Type | Method and Description
    --- | ---
    `void` | Executor.`execute(Runnable command)` Executes the given command at some time in the future.

Copyright © 2025 API Design. All Rights Reserved.