I'm playing arround with char[] in Java, and using the folowing sample code:
char[] str = "Hello World !".toCharArray();
System.out.println(str.toString());
System.out.println(str);
I get the following output:
[C@4367e003
Hello World !
And I have some questions about it:
What does
[C@4367e003stands for? Is it a memory address? What's the meaning of the digits? What's the meaning of[C@?I always thought that calling
println()on an object would call the toString method of this object but it doesn't seems to be the case?