try中有return语句,finally还会执行吗?
先说结论,是可以执行的
我们来看看实际的实验结果
实验一假设我们有这样一个代码块:
int x = 1;
try {
++x;
return x;
2021-11-26