title: How to start a thread after specified time delay in java
body: <p>I have called a method in ServletContextListener as thread ..Now as per my need i have to delay the thread for 1 minutes and then start executing the method called in the thread but i am not able to do that as i am very new in this...</p>
  
  <p>Here is my code ...</p>
  
  <pre><code>public class Startup implements ServletContextListener {
  
  @Override
  public void contextDestroyed(ServletContextEvent sce) {
  }
  
  public void contextInitialized(ServletContextEvent sce) {
      // Do your startup work here
      System.out.println("Started....");
      //captureCDRProcess();
      new Thread(new Runnable() {
  
          @Override
          public void run() {
  
              captureCDRProcess();
          }
      }).start();
  
  }
  </code></pre>
  
  <p>Please help me ..
  Thanks in advance..</p>