سؤال

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