posted 20 years ago
public void divide(int a, int b) {
try {
int c = a / b;
}
catch (Exception e) {
System.out.print("Exception ");
} finally {
System.out.println("Finally");
}
Prints out: Finally
Prints out: Exception
Prints out: Exception Finally
No output
i answered 1st option, but the correct option is 3.
The 3rd option wud be correct, if b = 0.
No such condition is mentioned here.
Wht shd be the correct answer and y?
SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.