Yes, the output is different but it doesn't depend on the intrinsic differences between a char[] and a int[].
System.out.println(cr); invokes the println(char[]) of java.io.PrintStream. This...
Type: Posts; User: andbin
Yes, the output is different but it doesn't depend on the intrinsic differences between a char[] and a int[].
System.out.println(cr); invokes the println(char[]) of java.io.PrintStream. This...
Arrays are implemented internally in the JVM, you can't extend or override anything about arrays.
Arrays derive from java.lang.Object but they don't override (redefine) the toString() method. So...
Prints 3 null (0 value) characters. The println choosen by compiler is the println(char[] x) that correctly prints each character in the array, then a newline. Default value in char array elements is...