title: why can't byte array be stored in integer array in java
body: <p>This code is valid </p>
  
  <pre><code>int h;
  byte r;
  h=r;
  </code></pre>
  
  <p>but these are not</p>
  
  <pre><code>int[] h;
  byte[] r;
  h=r;
  </code></pre>
  
  <p>or say </p>
  
  <pre><code>int[] h =new byte[4];
  </code></pre>
  
  <p>I would like to know why?</p>