質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top