Syntax aside, what is the difference between
try { } catch() { } finally { x = 3; }
and
try { } catch() { } x = 3; >
In Java:
Finally always gets called, regardless of if the exception was correctly caught in catch(), or in fact if you have a catch at all.