正在加载图片...
We can distinguish 3 categories checked exceptions- Problems to do with the program's interaction with"the world unchecked exceptions The world is unpredictable, so we itself(i.e. violations of the d would expect these things to system errors- Problems happen in proa ation code, and so nee These are outside our contron These should be removed by testing and not occur in production code The World Checked EXceptions Unchecked Program Exceptions System System Errors 88 We can distinguish 3 categories: • checked exceptions — Problems to do with the program's interaction with “the world”. • unchecked exceptions — Problems within the program itself (i.e. violations of the contract, or bugs). • system errors — Problems with the underlying system. These are outside our control. The world is unpredictable, so we would expect these things to happen in production code, and so need to handle them. These should be removed by testing, and not occur in production code. Unchecked Exceptions System Errors Program System The World Checked Exceptions
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有