Java - Exception Handling
Which block is guaranteed to execute whether an exception occurs or not in a
try block?try block?finally blockfinally block always executes after try and catch, regardless of exceptions.catch runs only if an exception occurs; try runs first; throw is a statement, not a block.finally block -> Option Bfinally always runs = The finally block [OK]finally always runs after try/catch [OK]catch as always runningtry runs after catchthrow as a block15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions