In Java, is a stream bi-directional?
No, a stream is unidirectional. It can either read or write depending on its type.
No, streams work only for writing
Yes, streams are bi-directional and same stream can read and write.
Yes, streams are bi-directional with a restriction a write stream must be flushed before next read
Back To Top