- 🧠 8.1 Understanding Files and Directories
- 🧠 8.2 Introducing Streams
- 🧠 8.3 Workking With Streams
- 🧠 8.4 Interacting with Users
- 📝 Revision Notes
- ✅ Review Questions
- Read and write data from the console
- Use the following classes from java.io.package:
BufferedReaderBufferedWriterFileFileReaderFileWriterFileInputStreamFileOutputStreamObjectOutputStreamObjectInputSttreamPrinterWriter
- Understand files, directories, and streams.
- Be able to use
java.io.Fileclass.
- This class has methods for creating/deleting files/directories and obtain a list of files within a directory
- Distinguish between byte and character streams
- Byte streams have the word
InputStream/OutputStreamin their name and are useful for binary data - Character streams have the word
Reader/Writerin their name=
- Be able to use the following classes:
BufferedReaderBufferedWriterFileFileWriterFileReaderFileInputStreamFileOutputStreamObjectInputStreamObjectOutputStreamPrintWriter
- Be able to perform stream operations like:
markSupported/mark(int)reset()/skip
- Understand how to use Java Serialization using
ObjectInputStream/ObjectOutputStream - Be able to interact with user via
Consoleclass