What is displayed on the console when running the following program?
class Test {
public static void main(String[] args) {
| System.out.println("Welcome to Java"); |
| System.out.println("Welcome to Java"); |
| catch (RuntimeException ex) { |
| System.out.println("Welcome to Java"); |
| System.out.println("End of the block"); |
}
}
◦ The program displays Welcome to Java three times followed by End of the block.
◦ The program displays Welcome to Java three times.
◦ The program displays Welcome to Java two times.
◦ The program displays Welcome to Java two times followed by End of the block.