Java Timer purge() MethodThe purge() is the method of Timer class. It is used to cancel the tasks present in the TimerTask Chain. SyntaxReturnThis method returns the number of tasks removed from the queue. Example 1Output: Task is on Task is on Task is on Task is on Task is on Task is stop purge value of Task:0 Next TopicJava-timer-scheduleatfixedrate-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India