在Java中,char的长度是2字节,即16位,2的16次方是65536. 1.如果采用utf-8编码,一个汉字占3个字节,char为什么还能存下一个汉字呢? 参考:https://developer.aliyun.com/ask/65417?spm=a2c6h.13159736.https://blog.csdn.net/shipfei_csdn/article/details/81900952.https://blog.csdn.net/Sugar_Z_/article/details/51…