Multiple choice

What is true from the following options?

i. The Reader/Writer class is character oriented. ii. The Reader/Writer class is byte oriented. iii. The InputStream/OutputStream class is character oriented. iv. The InputStream/OutputStream class is byte oriented.

  1. i. and iii. are true

  2. i. and iv. are true

  3. ii. and iii. are true

  4. ii. and iv. are true.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The answer is correct.The Reader/Writer class is used when any manipulation needs to be done on characters whereas InputStream/OutputStream class is used when any manipulation needs to be done on bytes.