public class ArraryTest{
public static void main(
String[]args){
byte[] b = {12,3};
short[] s = {2,3};
char[]c = {'a','g'};
int[] i = {12};
float[] f = {1.2f,4.1f};
Integer[]ob = {new Integer(0)};
System.out.println(b);
System.out.println(s);
System.out.println(c);//1
System.out.println(i);
System.out.println(f);
System.out.println(ob);
}
}
In the above program why (char[]) in line 1 produce different result?