Module 08
Java I/O & NIO
Classic streams, NIO buffers and channels, non-blocking I/O, files and memory-mapped I/O.
By the end of this module you can
- Choose between byte and character streams
- Explain non-blocking I/O with selectors
- Work with Files, Path and WatchService
Classic I/O
Byte and character streams, buffering and serialization.
- Byte streams vs character streamsFreeSoon
- Buffered I/OPremiumSoon
- Java serializationPremiumSoon
- Classic I/O: interview questions & scenariosPremiumSoon
NIO
Buffers, channels, selectors, files and memory mapping.
- Buffers and channelsPremiumSoon
- Selectors and non-blocking I/OPremiumSoon
- Files and PathFreeSoon
- WatchServicePremiumSoon
- Memory-mapped filesPremiumSoon
- NIO: interview questions & scenariosPremiumSoon
Patterns & best practices
Real-world I/O patterns.
- NIO in action: real-world patternsPremiumSoon
- I/O best practicesPremiumSoon
- Patterns & best practices: interview questions & scenariosPremiumSoon
Module interview question bank
Finish the module
Module interview question bankEvery interview question worth practising for Java I/O & NIO, grouped by topic, with model answers, how to say them and what-if follow-ups.