• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in JAVA by
Q:
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 in JAVA by SakshiSharma
0 votes
asked Apr 9 in JAVA by Robindeniel
...