Java TimerTask is an abstract class that represents a task that can be scheduled for one-time or repeated execution by a Java Timer. It allows developers to run a specific task at scheduled intervals or after a certain delay. Introduced in Java 1997 with Java 1.1, TimerTask is often used in scheduling background tasks, such as recurring actions or delayed tasks, in applications that require time-based scheduling.
https://docs.oracle.com/javase/8/docs/api/java/util/TimerTask.html