...
This noncompliant code example reads a byte array and converts it into a String
using the platform's default character encoding. When the default encoding differs from the encoding that was used to produce the byte arrayIf the byte array does not represent a string, or represents a string that was encoded using an encoding other than the default encoding, the resulting String
is likely to be incorrect. The behavior resulting from malformed-input and unmappable-character errors is unspecified.
...