-
Can finally be used without catch?
代码
你必须 将由
Questioner:Isabella Lewis 2023-05-05 14:10:00
The most authoritative answer in 2024
-

-
Benjamin King——Works at the International Seabed Authority, Lives in Kingston, Jamaica.
The
try block defines which lines of code
will be followed by the
finally code. If an exception is thrown prior to the
try block, the
finally code
will not execute. The
finally block always executes when the
try block exits. So you
can use finally without catch but you must
use try.
read more >>
About “代码、你必须、将由”,people ask:
QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.