>> There are six scheduling methods available in the Timer class.
>> we create a timer that is to run a task every 60 seconds
>> If the timer is delayed, the execution of the task will also be delayed
>> if the Java garbage collector happens to run in between tasks, it may be ore than 60 seconds before the next task is executed.Once the task is run, it will be another 60 seconds (at a minimum) before an additional task can occur. This ends up creating a cascading effect.
>> You can imagine that if such a timer were used to execute a task updating a clock, the accuracy of the clock would be suspect.
>> These timers are well-suited to tasks where consistency is more important than accuracy