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.


d. You cannot catch RuntimeException errors.

Computer Science & Information Technology

You might also like to view...

What color combinations work well for text and background? Which ones should you avoid?

What will be an ideal response?

Computer Science & Information Technology

To _______ a variable is to assign a value to a variable.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Another type of gradient supported by CSS3 is a ____ gradient,in which color blending starts from a single point within the object and proceeds outward in a circular or elliptical shape.

A. linear B. radial C. color D. shaded

Computer Science & Information Technology

To delete records ________ of the relationship, first delete the relationship, and then delete the data

A) on the one and many sides B) on neither side C) only on the one side D) only on the many side

Computer Science & Information Technology