Course contents

Module 08

Java I/O & NIO

Classic streams, NIO buffers and channels, non-blocking I/O, files and memory-mapped I/O.

Premium2 free lessons3 topics14 lessons & question sets0 ready

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.

  1. Byte streams vs character streamsLessonFreeSoon
  2. Buffered I/OLessonPremiumSoon
  3. Java serializationLessonPremiumSoon
  4. Classic I/O: interview questions & scenariosInterview Q&APremiumSoon

NIO

Buffers, channels, selectors, files and memory mapping.

  1. Buffers and channelsLessonPremiumSoon
  2. Selectors and non-blocking I/OLessonPremiumSoon
  3. Files and PathLessonFreeSoon
  4. WatchServiceLessonPremiumSoon
  5. Memory-mapped filesLessonPremiumSoon
  6. NIO: interview questions & scenariosInterview Q&APremiumSoon

Patterns & best practices

Real-world I/O patterns.

  1. NIO in action: real-world patternsLessonPremiumSoon
  2. I/O best practicesLessonPremiumSoon
  3. Patterns & best practices: interview questions & scenariosInterview Q&APremiumSoon

Module interview question bank

Finish the module

Module interview question bank

Every interview question worth practising for Java I/O & NIO, grouped by topic, with model answers, how to say them and what-if follow-ups.

Being written: it grows as the topics in this module are finished

PremiumSoon