Solved

Which of the Following Statements Enables You to Write Output

Question 2

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:

verifed

Verified

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents