Multiple Choices
Answer (Choose 1 answer)
What is the output of the program below ?
public class Main {
public static void main(String[] args){
try { System.out.println("ABC1");
int i=0;
float t;
t=1/i;System.out.println("ABC2");
System.out.println("ABC3");
}
catch (Exception e) { System.out.println("Exception"); } finally { System.out.println("finally 1"); }
System.out.println("last1");
}
}
A. ABC1
Exception finally 1
last1
B. ABC1
ABC2 ABC3
Exception
C. ABC1
ABC2
ABC3 finally 1