When r these two encodings used ?
Is it that when
Java stores characters on heap in memory, it uses Unicode encoding to represent the
characters, while Platform's Default Character Encoding is used when writing to a file, i.e. on the disk ?
I would like to know what is the meaning of following statement describing this method :
[b]public
String(byte[] bytes) [b]
[i]Construct a new String by converting the specified array of bytes using the platform's default character
encoding. [i]
As String uses Unicode to represent characters, where does the platform's default character encoding
come into the picture ?