Which of the following statements are correct?
```
I:
try (PrintWriter output = new PrintWriter("output.txt")) {
output.println("Welcome to Java");
}
II:
try (PrintWriter output = new PrintWriter("output.txt");) {
output.println("Welcome to Java");
}
III:
PrintWriter output;
try (output = new PrintWriter("output.txt");) {
output.println("Welcome to Java");
}
IV:
try (PrintWriter output = new PrintWriter("output.txt");) {
output.println("Welcome to Java");
}
finally {
output.close();
}
```
a. I
b. II
c. III
d. IV
a. I
b. II
c. III
You might also like to view...
A pie chart ____ is a box that identifies each slice of the pie chart and coordinates with the colors assigned to the slice categories.
A. legend B. title C. slice D. background
List four techniques for comparing the costs and benefits of a proposed system.
What will be an ideal response?
You can adjust the transparency of a color by decreasing the percentage of the ____ setting.
A. Visible B. Transparency C. Display D. Alpha
You access the Conditional Formatting Rules Manager dialog box from the ____ tab in Layout view.
A. Report Layout Tools B. Report Layout Tools Format C. Report Format Tools D. Report Tools Layout