title: Why use hexadecimal constants?
body: <p>Sometimes I see Integer constants defined in hexadecimal, instead of decimal numbers. This is a small part I took from a GL10 class:</p>
  
  <pre><code>public static final int GL_STACK_UNDERFLOW = 0x0504;
  public static final int GL_OUT_OF_MEMORY = 0x0505;
  public static final int GL_EXP = 0x0800;
  public static final int GL_EXP2 = 0x0801;
  public static final int GL_FOG_DENSITY = 0x0B62;
  public static final int GL_FOG_START = 0x0B63;
  public static final int GL_FOG_END = 0x0B64;
  public static final int GL_FOG_MODE = 0x0B65;
  </code></pre>
  
  <p>It's obviously simpler to define <code>2914</code> instead of <code>0x0B62</code>, so is there maybe some performance gain? I acutallly don't think so, since then it should be the compiler's job to change it.</p>