Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java基础知识.md # 异常处理总结 建议添加 #190

Closed
hades0525 opened this issue Mar 4, 2019 · 3 comments
Closed

Java基础知识.md # 异常处理总结 建议添加 #190

hades0525 opened this issue Mar 4, 2019 · 3 comments
Labels
enhancement New feature or request or suggestion

Comments

@hades0525
Copy link

如果try语句里有return,返回的是try语句块中变量值。 
详细执行过程如下:
a.如果有返回值,就把返回值保存到局部变量中;
b.执行jsr指令跳到finally语句里执行;
c.执行完finally语句后,返回之前保存在局部变量表里的值。
**如果try,finally语句里均有return,忽略try的return,而使用finally的return.

@Snailclimb
Copy link
Owner

感谢!已经添加! @hades0525

@Snailclimb Snailclimb added the enhancement New feature or request or suggestion label Mar 14, 2019
@hashming
Copy link

hashming commented Dec 5, 2019

可以理解为jvm在cpu中吗?

@QzP-QD
Copy link

QzP-QD commented Mar 3, 2022

感谢分享

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request or suggestion
Projects
None yet
Development

No branches or pull requests

4 participants