This post originated from an RSS feed registered with Java Buzz
by Kiran Kumar.
Original Post: Timers in java: Create timer in java with example?
Feed Title: Java,Maven,Linux,Unix,Hadoop,HDFS,Hive basic tutorials,examples
Feed URL: http://www.cloudhadoop.com/feeds/posts/default
Feed Description: My Blog on Java,Maven Unix, Linux,Hadoop,MySQL,tutorial with examples
Timer in java:-
Timer is java classe is in java.utils package, Timer is used to specify the task execution for every intervals or after holdup of some time in an application.
TimerTask in java:-
TimerTask is java class in java.utils package. TimerTask implements runnable interface which has run method to overried.
run method of TimerTask can have code for which you want to apply the timer