What is displayed on the console when running the following program?
```
public class Test {
public static void main(String[] args) {
try {
System.out.println("Welcome to Java");
int i = 0;
int y = 2/i;
System.out.println("Welcome to Java");
}
catch (RuntimeException ex) {
System.out.println("Welcome to Java");
}
finally {
System.out.println("End of the block");
}
System.out.println("End of the block");
}
}
```
a. The program displays Welcome to Java three times followed by End of the block.
b. The program displays Welcome to Java two times followed by End of the block.
c. The program displays Welcome to Java two times followed by End of the block two times.
d. You cannot catch RuntimeException errors.
c. The program displays Welcome to Java two times followed by End of the block two times.
You might also like to view...
After a document has been merged, by default a(n) ________ page is added to the end of the document
Fill in the blank(s) with correct word
The default setting for undoing multiple changes is ____.
A. 5 B. 10 C. 15 D. 20
In the figure above, Layer 1 is the active layer.
Answer the following statement true (T) or false (F)
Address the issue of biometrics and privacy.
What will be an ideal response?