Multiple choice

Which of the following strings can be used as mode string(s) for creating a Random Access File object?

  1. �r�

  2. �w�

  3. �rw�

  4. both (1) and (3)

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

The RandomAccessFile class accepts 'r' for read-only and 'rw' for read-write access modes.