下面的代碼會(huì)產(chǎn)生 java.lang.ArithmeticException 導(dǎo)致應(yīng)用崩潰:
private void crash() {
int result = 1 / 0;
}
測(cè)試的時(shí)候用。
下面的代碼會(huì)產(chǎn)生 java.lang.ArithmeticException 導(dǎo)致應(yīng)用崩潰:
private void crash() {
int result = 1 / 0;
}
測(cè)試的時(shí)候用。