title: Adding/Subtracting 5 seconds from Java Date - Showing deprected warning
body: <p>I want to add 5 seconds to current time </p>
  
  <pre><code>    Date date = new Date();
  
      date.setSeconds(date.getSeconds()+ 5);
      System.out.println("old Value is: "+date);
      System.out.println("New Value is: "+ date);
  </code></pre>
  
  <p>It generates the correct output exactly what I needed as:</p>
  
  <pre><code>Old Value is: Thu Apr 17 14:10:33 PKT 2014
  New Value is: Thu Apr 17 14:10:38 PKT 2014
  </code></pre>
  
  <p>but it gives me a warning error message as </p>
  
  <pre><code>Multiple markers at this line
      - The method getSeconds() from the type Date is deprecated
      - The method setSeconds(int) from the type Date is 
       deprecated
  </code></pre>
  
  <p>What this means. Is it safe to ignore this warning? if not then how to handle it?</p>