title: Should I use upper-case naming to declare java constant variables?
body: <p>My question: Should names of constant Java variables (within methods) be upper-case?</p>
  
  <p>I've always been under the impression that </p>
  
  <p>a) if a variable is never going to change, it should be declared final (to show/enforce that it won't change)
  b) it should be named in upper-case</p>
  
  <p>However, I've noticed in eclipse, when changing a variable (within a method) to be final/constant, and subsequently refactoring/renaming it to something like below:</p>
  
  <pre><code>final int NODE_COUNT = 3;
  </code></pre>
  
  <p>I get the following warning:</p>
  
  <blockquote>
    <p>This name is discouraged.  According to convention, names of local variables should start with a lowercase letter.  </p>
  </blockquote>
  
  <p>Which makes me wonder if the upper-case rule doesn't apply in this instance (i.e. final variable within a method).  </p>