[SalesForce] Governor Limit Exception and Finally blocks

We all know that if you hit a Governor Limit Exception, your code/application will terminate with an unhandleable exception know as a Governor Limit Exception.

My question is does your code terminated at the point at which the limit is exceeded? If so, even if you have a finally block, it will not get run since your code has terminated?

Best Answer

When you hit a LimitException, it terminates the entire transaction. No other Apex code you have written will run within the same transaction, because it is over.