title: wrong array length in java
body: <p>I've defined an array initialized with 12 elements, but the value of its <em>length</em> attribute is set to 10 by JVM and I cannot access the 11th and 12th elements. What should I do to solve the problem?
  Assume that this array is defined as follows:</p>
  
  <pre><code>private static final Type[] p = new Type[]{ null, null, null, null, null, null, null, null, null, null, null, null }; 
  </code></pre>
  
  <p>and in some function I use Type x = p[11]; then I get the above exception </p>