public final class string
implements java.io.serializable, comparable<string>, charsequence {
/** the value is used for character storage. */
private final char value[];
}
java 9 及之后:(使用coder标识了编码)
public final class string
implements java.io.serializable, comparable<string>, charsequence {
/** the value is used for character storage. */
private final byte[] value;
/** the identifier of the encoding used to encode the bytes in
{@code value}. */
private final byte coder;
}