After the program will try catch it to go down

Today ran into this problem, the service information has been saved the old version of the device, but not when dealing with another treatment, has been warning

Look for a moment, when saving with a try catch, so the old version of the data is also saved, but should not be saved, so profusely try catch block, when abnormal program termination directly to the thread

Own test it, and indeed after the program is catch, the code behind will continue

public static void main(String[] args) {
try{
int a = 10/0;
}catch (Exception e){
System.out.println(111);
}
System.out.println(222);
}
输出111 222

Guess you like

Origin www.cnblogs.com/qtlq/p/11458136.html