java File I/O
java File I/O 1. A stream is a flow of data. From where and to where does the data flow in an input stream? From where and to where does the data flow in an output stream? 2. What is the difference between a binary file and a text file? 3. What kind of exception might be thrown by the following, and what would it exception is thrown? PrintWriter outputStream = new PrintWriter( new FileOutputStream("")); 4. Does the class PrintWriter have a constructor that accepts a string (for a fi le name) as an argument, so that the following code would be legal? PrintWriter outputStream = new PrintWriter("");
Written for
- Institution
-
Harvard University
- Course
-
Programming in java
Document information
- Uploaded on
- February 7, 2023
- Number of pages
- 11
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
java file io
Also available in package deal