title: Java Timer vs ExecutorService?
body: <p>I have code where I schedule a task using <code>java.util.Timer</code>. I was looking around and saw <code>ExecutorService</code> can do the same. So this question here, have you used <code>Timer</code> and <code>ExecutorService</code> to schedule tasks, what is the benefit of one using over another?</p>
  
  <p>Also wanted to check if anyone had used the <code>Timer</code> class and ran into any issues which the <code>ExecutorService</code> solved for them.</p>