Olá,
estou em duvida qual seria a certa ???
abs
- String s = “write a line to a file”;
- w.print(s + “\n”);
Which is true?
A w can be of either type PrintWriter or BufferedWriter.
B w can be of NEITHER type PrintWriter nor BufferedWriter.
C w can be of type PrintWriter, but NOT of type BufferedWriter.
D w can be of type BufferedWriter, but NOT of type PrintWriter.