Handling an exception in the Java language must not be followed:
While (...) {
Try {
....
} catch () {
} finally {
}
}
This is a very dangerous move. If there is an abnormality, it will enter the loop, bringing an unexpected bug. Press my understanding, the effect of try is interrupt code (you can understand some of the code to interrupt your program, a little if IF The taste), the program is not affected by mandatory. Therefore, the TRY in the while is also circulated n times.