Java TimerTask Class
Java.util package has a TimerTask class which represents a task that can be scheduled for one-time or repeated execution by a Timer.
The declaration of java.util.TimerTask class is:
public abstract class TimerTask extends Object implements Runnable
|S.N||Constructors & Description|
Creates a new timer task.
The java.util.TimerTask class has a number of methods which are listed below:
|S.N||Methods & Description|
Cancels this timer task.
abstract void run()|
The action to be performed by this timer task.
Returns the scheduled execution time of the most recent actual execution of this task.
This class inherits the methods of following class: