title: Printing all elements of an array in one println statement in Java
body: <pre><code>public class Test {
  
      public static void main(String[] args) {
  
          int[] a= new int[]{1,2,3};
  
          System.out.println(a);
  
  
      }
  }
  </code></pre>
  
  <p>I expected to take a compile or run-time error.I took an output.It's "<code>[I@1ba4806</code>".What's the reason of it in Java? </p>