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...
What method is this?
Given the following code:
template < class ItemType>
ItemType ArrayStack
Answer the following statements true (T) or false (F)
1. One criteria for an S-box is: "If two inputs to an S-box differ in exactly one bit, the outputs must also differ in exactly one bit. “? 2. The heart of a Feistel block cipher is the function F, which relies on the use of S-boxes. ? 3. The strict avalanche criterion and the bit independence criterion appear to weaken the effectiveness of the confusion function. ? 4. An advantage of key-dependent S-boxes is that because they are not fixed, it is impossible to analyze the S-boxes ahead of time to look for weaknesses. ? 5. The key schedule algorithm is more popular and has received more attention than S-box design. ?