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
Please take this assessment to check your understanding of the materials presented in this unit.
Notes:
- There is no minimum required score to pass this assessment, and your score on this assessment will not factor into your overall course grade.
- This assessment is designed to prepare you for the Final Exam that will determine your course grade. Upon submission of your assessment you will be provided with the correct answers and/or other feedback meant to help in your understanding of the topics being assessed.
- You may attempt this assessment as many times as needed, whenever you would like.