Answer (Choose 1 answer)
What is the output of the following program?
import java.io.IOException;
public class Main {
public static void main(String[] args) {
int k = 5;
try {
if(k>4) throw new IOException();
C. one
} catch(IOException e) {
D. one three
System.out.print("one ");
}
catch(Exception e) {
}
System.out.print("two ");
finally {
System.out.print("three");
System.out.println();
A. one two three
B. one two
Exit 39