title: char array vs int array in java while printing the base value of array
body: <p>In java while printing char array it gives null pointer exception but in case of integer array it prints null      </p>
  
  <pre><code>public class Test {
      char c[];
      int a[];
      //while printing c it gives null pointer exception
      public static void main(String[] args) {
          System.out.println(new Test().c);
          //  in case of integer it prints null  
          System.out.println(new Test().a);
      }
  }
  </code></pre>