Which of the following statements opens a file named MyFile.txt and allows you to append data to its existing contents?

a. FileWriter fwriter = new FileWriter("MyFile.txt");
PrintWriter outFile = new PrintWriter(fwriter);
b. FileWriter fwriter = new FileWriter("MyFile.txt", true);
PrintWriter outFile = new PrintWriter(fwriter);
c. PrintWriter outfile = new PrintWriter("MyFile.txt", true);
d. PrintWriter outfile = new PrintWriter(true, "MyFile.txt");


b. FileWriter fwriter = new FileWriter("MyFile.txt", true);
PrintWriter outFile = new PrintWriter(fwriter);

Computer Science & Information Technology

You might also like to view...

_________ is the process of combining two or more values to create a single value

Fill in the blank(s) with correct word

Computer Science & Information Technology

Answer the following statement(s) true (T) or false (F)

1. To move a mask, first click the link icon on the Layers panel to unlink the mask from the layer. 2. Painting with gray displays various levels of transparency in the layer. 3. You cannot make tonal changes to the pixels of a layer itself; you first must create an adjustment layer that is applied over the top. 4. Adjustment layers are nondestructive, which means you can try different settings and reedit the adjustment layer at any time. 5. With the correct adjustment, a layer seems to meld into the image and maintains a consistency of appearance for the overall composite image.

Computer Science & Information Technology

Use a(n) ____ to maintain constant power to a file server in the event of a power problem.

A. UPS B. surge protector C. power strip D. encryption program

Computer Science & Information Technology

Semiconductors are substances with properties between those of a conductor and an insulator.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology