I am new to java and trying to understand the essentials and fundamentals of the language.
Is it accurate to state that Java string objects are intrinsically a class defined as an immutable array of chars?
I ask this as I'm a bit confused by the spec in comparison to char arrays and the string class...
10.9 An Array of Characters is Not a String In the Java programming language, unlike C, an array of char is not a String, and neither a String nor an array of char is terminated by '\u0000' (the NUL character). A String object is immutable, that is, its contents never change, while an array of char has mutable elements. The method toCharArray in class String returns an array of characters containing the same character sequence as a String. The class StringBuffer implements useful methods on mutable arrays of characters.
4.3.3 The Class String Instances of class String represent sequences of Unicode code points.