title: Java array reflection: isArray vs. instanceof
body: <p>Is there a preference or behavior difference between using:</p>
  
  <pre><code>if(obj.getClass().isArray()) {}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>if(obj instanceof Object[]) {}
  </code></pre>
  
  <p>?</p>