Multiple choice

Filter stream filters data as

  1. read from stream

  2. write to the stream

  3. both (1) and (2)

  4. none of these

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

Filter streams in Java are designed to wrap existing streams to provide additional functionality, such as buffering or data transformation. They can perform these filtering operations on data as it is being read from or written to the underlying stream.