Multiple Choice
Which of the following statements enables you to write output to a text file?
A) PrintWriter out = new PrintWriter() ;
B) PrintWriter out = new PrintWriter("output.txt") ;
C) FileReader reader = new FileReader("input.txt") ;
D) Scanner in = new Scanner(reader) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q66: Which class is used for input of
Q67: Given a RandomAccessFile that stores a set
Q68: If you want to process text data
Q69: Which of these classes access sequences of
Q70: Assume we have a RandomAccessFile object, file,
Q72: _ access allows file access at arbitrary
Q73: Which is not a method in the
Q74: The _ method returns an integer, either
Q75: Which line completes this code fragment so
Q76: The readInt and writeInt methods of the