Filter stream filters data as
-
read from stream
-
write to the stream
-
both (1) and (2)
-
none of these
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.