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
You might also like to view...
What is the purpose of a privileged access policy?
What will be an ideal response?
To create a primary text frame, click the Primary Text Frame check box in the New Document dialog box when creating a new document.
Answer the following statement true (T) or false (F)
You may be able to ________ files that are removed from the Recycle Bin after the Recycle Bin has been emptied
Fill in the blank(s) with correct word
When you delete a record from a table, a dialog box displays to confirm the delete operation.
Answer the following statement true (T) or false (F)