Arrays don't override the toString()
method. What you're seeing is thus the output of the default Object.toString()
implementation, which contains the type of the object ([C
means array of chars) followed by its hashCode.
To construct a String from a char array, use
new String(c)