What is the default encoding for an OutputStreamWriter?
A. UTF-8
B. Default encoding of the host platform
C. UTF-12
D. None of the above
Answer:B
What is the default encoding for an OutputStreamWriter?
A. UTF-8 B. Default encoding of the host platform C. UTF-12 D. None of the above
Explanation: The OutputStreamWriter class translates Unicode character into bytes by using the character encoding. The character encoding can be either a default encoding dependent on the system or encoding that is explicitly defined. If no external encoding is specified, it will use the default encoding of the host platform.