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 · 2 comments
Closed

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

hades0525 opened this issue Mar 4, 2019 · 2 comments
Labels

Comments

@hades0525
Copy link

@hades0525 hades0525 commented Mar 4, 2019

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

@Snailclimb

This comment has been minimized.

Copy link
Owner

@Snailclimb Snailclimb commented Mar 5, 2019

感谢!已经添加! @hades0525

@hashming

This comment has been minimized.

Copy link

@hashming hashming commented Dec 5, 2019

可以理解为jvm在cpu中吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.