Java enums over Constants
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1419835/understanding-enums-in-java">Understanding Enums in Java</a>  </p>
</blockquote>



<p>Why should we use enums rather Java constants?</p>

<p>I have read that Java enums gives type safety. Can somebody please elaborate it? Or there is any other advantage of using enum over constants?</p>
