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");
}
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. The program displays Welcome to Java and End of the block, and then terminates because of an unhandled exception.
d. The program displays Welcome to Java and End of the block, and then terminates because of an unhandled exception.
You might also like to view...
The ____ is a screen tip that shows you the amount of space between two guides when you hold down the control key (Win) or command key (Mac) and place the mouse pointer between the guides.
A. surfeit B. proximate C. distance D. map
________ ciphers leave letters in their original positions.
Transposition Substitution Both Transposition and Substitution Neither Transposition nor Substitution
Which of the following is a method in Flash for animating a set of objects in relation to each other using an articulated structure of bones?
A. Morphing B. Tweening C. Inverse Kinematics D. Frame-by-frame animation
The four largest wire services are all located in North America.
Answer the following statement true (T) or false (F)