Mastering Java: The Ultimate 2025 All-In-One Quiz to Excel in 'Thinking in Java

Image Description

Question: 1 / 510

Why is RandomAccessFile not part of the InputStream or OutputStream hierarchies?

Because it allows seeking within a file

RandomAccessFile is not part of the InputStream or OutputStream hierarchies because it allows for random access or seeking within a file, meaning it can read or write at any position within a file. This feature is not supported by the other options provided, which either operate on text files only (B), were added in a later Java version (C), or do not support I/O operations (D).

Get further explanation with Examzify DeepDiveBeta

Because it operates on text files only

Because it was added in a later Java version

Because it does not support I/O operations

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy