public class ExceptionHandling {
public static void main(String[] args) {
double dbl = 1.0;
try {
dbl = dbl / 0;
System.out.println("unreachable");
} catch (ArithmeticException e) {
System.out.println("reachable");
} finally {
System.out.println("reachable");
}
System.out.println("unreachable");
}
}
Finally is not printing "finally". Please, fix. Also latest "unreachable" is not printed in the correct answer.
2017 Jun 19, 10:30:30 PM
Войдите чтобы поставить Нравится
Войдите чтобы прокомментировать