In this code will someVar be set even if the catch block is executed and the second Exception is thrown?
public void someFunction() throws Excep
Finally is always executed, no matter what your case is i.e
For unchecked exceptions, java does not mandate, error handling. this being the reason, if an unchecked exception occurs in finally block then and no handling is done for that, then code written below this point (where the error has occurred) will not be executed.
So I suggest to always handle all the exceptions may it be checked or unchecked. This way you can make sure that code block in finally is also executed no matter if unchecked exception also occurs. you have a place in sub-nest catch and Finally block to get your necessary work done.