6.9 try...catch语句一个try-catch语句应该具有如下格式:try { statements;} catch (ExceptionClass e) { statements;}一个try-catch语句后面也可能跟着一个finally语句,不论try代码块是否顺利执行完,它都会被执行。try { statements;} catch (ExceptionClass e) { statements;} finally { statements;}
加入QQ群条件:在本站发表文章一篇,加入消息里留下文章URL。 武汉Linux用户组 QQ群:6398431 武汉自由软件协会 QQ群:726846