英文字符占用 1 个字符
中文字符 GBK 编码占用 2 个字符,UTF-8 占用 3 个字符
java 常用类型占用字节数
原文:https://www.cnblogs.com/liang1101/p/14782855.html