title: How can I check whether an array is null / empty?
body: <p>I have an <code>int</code> array which has no elements and I'm trying to check whether it's empty.</p>
  
  <p>For example, why is the condition of the if-statement in the code below never true?</p>
  
  <pre><code>int[] k = new int[3];
  
  if (k == null) {
      System.out.println(k.length);
  }
  </code></pre>