0 votes
in JAVA by
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

1 Answer

0 votes
by

(b) Default encoding of the host platform

Reason: 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.

Related questions

0 votes
asked Apr 8, 2021 in JAVA by SakshiSharma
0 votes
asked Apr 10, 2021 in JAVA by Robindeniel
...