Using the Timer and TimerTask Classes - IIT Kanpur
After all the timer's scheduled tasks have finished executing, remove all references to the Timer object. Eventually, the timer's thread will terminate. Invoke the System.exit method, which makes the entire program (a...