Considering this code, can I be absolutely sure that the finally block always executes, no matter what something() is?
finally
something()
try
Yes, finally block is always execute. Most of developer use this block the closing the database connection, resultset object, statement object and also uses into the java hibernate to rollback the transaction.