Skip to content

Files

Latest commit

 

History

History

chapter_8

Chapter 8 - IO

📜 Contents 📜


🎯 Exam Objectives 🎯

  • Read and write data from the console
  • Use the following classes from java.io.package:
    • BufferedReader
    • BufferedWriter
    • File
    • FileReader
    • FileWriter
    • FileInputStream
    • FileOutputStream
    • ObjectOutputStream
    • ObjectInputSttream
    • PrinterWriter

✅ Exam Essentials ✅

  1. Understand files, directories, and streams.
  2. Be able to use java.io.File class.
  • This class has methods for creating/deleting files/directories and obtain a list of files within a directory
  1. Distinguish between byte and character streams
  • Byte streams have the word InputStream/OutputStream in their name and are useful for binary data
  • Character streams have the word Reader/Writer in their name=
  1. Be able to use the following classes:
  • BufferedReader
  • BufferedWriter
  • File
  • FileWriter
  • FileReader
  • FileInputStream
  • FileOutputStream
  • ObjectInputStream
  • ObjectOutputStream
  • PrintWriter
  1. Be able to perform stream operations like:
  • markSupported/mark(int)
  • reset()/skip
  1. Understand how to use Java Serialization using ObjectInputStream/ObjectOutputStream
  2. Be able to interact with user via Console class