Question: Topic 5: File I/O Study Guide Know how to read from a file (by using File and Scanner) Know potential exceptions occurred while reading files

Topic 5: File I/O Study Guide Know how to read from a file (by using File and Scanner) Know potential exceptions occurred while reading files and how to handle them ms 1. Which class do you use to read data from a text file? A. File B. PrintWriter C. Scanner D. System 2. Which method can be used to create an input object for file temp.txt? A. new Scanner(temp.txt") B. new Scanner(temp.txt) C. new Scanner(new File("temp.txt")) D. new Scanner(File("temp.txt")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
