In the followi开发者_JS百科ng example
try {
lineA
lineB
lineC
lineD
}
catch {
lineE
}
finally {
lineF
}
if an exception occurs (let's assume a 100% probability of an exception there) in lineB, then the total execution algorithm looks like
lineA
lineB
lineE
lineF
lines C and D are never reached. Am I 100% right?
Yes, you're correct presuming exception thrown is of type caught in catch block
精彩评论