title: Java integer type constant declaration - primitive or object?
body: <p>In Java, what's the benefit of int constant declared by an object way:</p>
  
  <pre><code>public final static Integer SOME_CONSTANT = Integer.valueOf(99);
  </code></pre>
  
  <p>instead of classic</p>
  
  <pre><code>public final static int SOME_CONSTANT = 99;
  </code></pre>
  
  <p>I know the basic difference between objects and primitives, also autoboxing. But I have seen this declaration in our company's code and I wonder, is there any particular reason of declaring integer constant as an object?</p>