Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is the purpose of the FileReader class?
Think about what reading data from files allows you to do.
Name one advantage of using BufferedReader.
Consider the efficiency of reading data.
What does the FileWriter class do?
Remember the action associated with this class.
True or False: BufferedReader reads data line by line efficiently.
Think about how it processes data as compared to FileReader.
Design a Java program that accepts user input and writes it to a file using PrintWriter. Explain your choice for PrintWriter over FileWriter.
Consider user-friendly output in your program's design.
How would you modify the program from the previous challenge to read from the written file and display its contents? Write the pseudocode for this.
Think about how you will sequence your read and display actions.
4 more questions in this section. Enroll free to practise them all.
Enroll free