Does return “happen after” finally?

后端 未结 4 1007
时光取名叫无心
时光取名叫无心 2020-12-05 17:29

I am trying to convince myself that actions taken in the finally clause happen before the function return (in the memory consistency sense). From the J

4条回答
  •  时光取名叫无心
    2020-12-05 18:28

    The call to queryDatabase() happens first. Then the finally block. Then control leaves the function (that's the return).

提交回复
热议问题