title: Best Practice to define constant - inside class or inside interface?
body: <p>I have a class which has only constant. Code snippets is :   </p>
  
  <pre><code>public class CommonConstant
  {
  
      public static final String  DAY                 = "DAY";
      public static final String  WEEK                = "WEEK";
      public static final String  MONTH               = "MONTH";
      public static final String  YEAR                = "YEAR";
      public static final String  ACCEPTED            = "accepted";
      public static final String  REJECTED            = "rejected";
      public static final String  ADDED               = "added";
      public static final String  MODIFIED            = "modified";
  
  }
  </code></pre>
  
  <p>Is it good practice to specify constants in class file or it should be in an interface ?
  What is good practice ?</p>