I am trying to understand what happens to the exception thrown in try block, when an exception occurs again in finally block?
After running code below, I only see exception thrown in finally block. I am trying to understand what happens to the exception in thrown in try block?
try{
int i = 10/0;
}
finally {
System.out.println("one");
int[] a = new int[2];
a[4] = 0;
System.out.println("two");
}