Hi,
This is from an Enthuware question:
When I run the code I get:
Exception in
thread "main" java.lang.CloneNotSupportedException
at Main.m1(Main.java:24)
at Main.main(Main.java:9)
So an SQLException should be thrown from within the catch block, but since the finally block is always executed a CloneNotSupportedException is thrown as well.
My question is what happens to the SQLException?
Handling just the CloneNotSupportedException when calling m1() compiles fine:
Running this code just results in the output "CloneNotSupportedException".
It seems like an SQLException is thrown in the catch block but never handled or declared.
Thanks,
John