c*******9 发帖数: 6411 | 1 assuming we have the code:
try{
function();
}
catch(exception e)
{
log(..)
}
int i = 1;
...
when some code inside function() throw an exception and get caught here,
after log(..)
will the program continue to execute the statement "int i=1", or it just
stop?
thanks... | X****r 发帖数: 3557 | 2 Yes, unless log(..) throws.
【在 c*******9 的大作中提到】 : assuming we have the code: : try{ : function(); : } : catch(exception e) : { : log(..) : } : int i = 1; : ...
|
|