What is `ScheduledExecutorService` used for?

Java Professional Medium

Java Professional — Medium

What is `ScheduledExecutorService` used for?

Key points

  • It is specifically designed for scheduling tasks.
  • It allows tasks to be executed after a delay or at fixed intervals.
  • It is not used for managing fixed thread counts or creating daemon threads on demand.

Ready to go further?

Related questions