What is the "Absolute Completion of the Final Reservation"?

According to Java language specification :

If there are any attached try actions whose try blocks contain a throw statement, then any final sentences of these try statements are executed, since control is passed out until an abandoned value is selected. Note that abrupt completion of the finally clause can disrupt the transfer of control initiated by the throw statement.

Besides returning inside the finally block, what other methods exist?

+3
source share
3 answers

finally ( ).

EDIT: , " ".
§14.1: :

, :

  • , , Java

finally, .

+6

Sys.exit() . GUI, , , Sys.exit() , - , JVM 1.5 --- , GUI, .

: , . , Sys.exit() , , , ; . , Java- Sun .

0

, break , finally . , finally , , , .

0

All Articles