Given the following statement, which statement will write the string "Calvin" to the file DiskFile.txt?
```
PrintWriter diskOut = new PrintWriter("DiskFile.txt");
```
a. System.out.println(diskOut, "Calvin");
b. PrintWriter.println("Calvin");
c. DiskFile.println("Calvin");
d. diskOut.println("Calvin");
d. diskOut.println("Calvin");
Computer Science & Information Technology
You might also like to view...
Which of the following security methods is best used to track access to a server room?
a. Key lock b. Mantrap c. Biometric lock d. Sign-in log
Computer Science & Information Technology
Answer the following statements true (T) or false (F)
1. The largest value that can be stored in a byte is 1. 2. Any piece of data stored in a computer’s memory must be stored as a decimal number. 3. ASCII is quickly becoming the standard character set used in the computer industry. 4. A binary number can represent only integer values less than 255.
Computer Science & Information Technology