/*
* Exception
*/
Check Exception: The program is normal, but due to external conditions do not meet the trigger. such as opening files that may not exist, addresses that may not exist, and so on.
Run-time Exception: program bug, such as array out of bounds, 0 is removed, the entry parameter does not meet the conditions.
Error: Rare, may be a program bug, or it may be an environmental issue. such as memory exhaustion. Errors are not processed in the program and are handled by the running environment.
Resources that need to be closed are generally handled in finally. Typically, the following scenarios will not be performed:
1. Finally, an exception occurred in the fast.
2, the program is dead on the thread.
3. The System.exit () method is used in the preceding code.
4. Shut down the CPU.
Java Basic Learning--a study of Hanshunping data in recent days (II.)