Deprecated methods in java
<p>If a method is deprecated in Java there will be a another best way to have same functionality, right?</p>

<pre><code>Date date = new Date();
date.getHours()
</code></pre>

<p>If <code>getHours()</code> is deprecated then what is the best way to get date using only the Date class?</p>
