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");
}
}
}
```
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 three times.
d. The program displays Welcome to Java two times.
b. The program displays Welcome to Java two times followed by End of the block.
You might also like to view...
If you are using Java 5.0 (1.5) or above rewrite the Student class to use generics with ArrayList and List.
What will be an ideal response?
What is nmap used for?
What will be an ideal response?
A network attached storage server, often called a(n) ____________________, has its own IP address, usually does not have a keyboard or display, and contains at least one hard disk, often configured in a RAID.
Fill in the blank(s) with the appropriate word(s).
Explain what is meant by the term the cloud.
What will be an ideal response?