It means the default character encoding of the JVM that you're running on,
To check the default encoding you can do the following:
System.getProperty("file.encoding");
that will return the default encoding (and the one used by getBytes() above).
本文详细解释了 Java 中默认字符编码的设定及其获取方式,通过使用 System.getProperty(file.encoding) 方法来检查默认编码,对于理解 Java 的字符处理机制至关重要。
byte[] b = test.getBytes();
In the api it is specified that if we do not specify character encoding it takes the default platform character encoding.
It means the default character encoding of the JVM that you're running on,
To check the default encoding you can do the following:
System.getProperty("file.encoding");
that will return the default encoding (and the one used by getBytes() above).

被折叠的 条评论
为什么被折叠?