It depends on how serious you are about data integrity.
, , , catch .
try , , catch . , .
. , , = 4
try {
for(i=0; i<10; i++){
System.out.println("" + i);
}
} catch (Exception e) {
e.printStackTrace();
}
-
0
1
2
3
Exception
for(i=0; i<10; i++){
try {
System.out.println("" + i);
} catch (Exception e) {
e.printStackTrace();
}
}
0
1
2
3
Exception
5
6
7
8
9