• Unit 8: Java I/O and Exception Handling

    In this unit, we will discuss two important programming concepts in Java: input and output, and well as exception handling. Input and output techniques allow programmers to design more complex and useful programs. For this reason, you must fully understand how to use a programming language's built-in I/O (input/output) functionality. In this unit, we will discuss function I/O in Java before moving on to file I/O: both writing and reading data to and from files. Each unit will contain a discussion of the applicable Java classes, which are part of the standard programming language - FileWriter, PrintWriter, FileReader, BufferedReader, and IOException. We will then identify the common pitfalls and design concepts that you should keep in mind as a programmer. By the end of this unit, you will have a strong understanding of how to write and read from a file and how to write a Java program that performs these functions. Exception handling mechanism allows a program to continue executing, even if an error occurs in the program, instead of terminating it abruptly.

    Completing this unit should take you approximately 11 hours.

    • Unit 8 Assessment