Domanda

I have searched a lot to find the implementation of finally block by java implementers.

I want to know how java evaluates finally block.

Does anybody know how finally block is defined in java language?

È stato utile?

Soluzione

The implementation is going to be JVM dependent, but will follow the JVM Specifications #3.13.

finally behaves like a "catch all" in the exceptions table, with the proper redirections in the bytecode.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top