Timertask is a Java API class. Logically it represents a task that can be scheduled for one-time or repeated execution by a Timer
A TimerTask implements Runnable, also has a method to cancel the scheduled task, if required. It is used with java.util.Timer (Swing timer fires action events).
A concurrent package contains several classes that are similar to TimerTask by concept but provide additional funcitonality.