title: Scheduled task using ScheduledExecutorService ? A good idea?
body: <p>I need to execute some task daily. Can I use ScheduledExecutorService for this? Say a piece of code that is running always at particular interval. My doubt I am keeping CPU busy always running my code, but this code will run my actual task once in a day,week or month depends on configuration. </p>
  
  <pre><code>ScheduledExecutorService schedular = Executors.newScheduledThreadPool(1);
  schedular.scheduleAtFixedRate(new MySchedular(), 1, 24, TimeUnit.HOUR);
  </code></pre>
  
  <p>Or do we have any better option?</p>