22

深度分析:Java中如何如理异常,一篇帮你搞定!-前程有光的博客

 4 years ago
source link: https://blog.51cto.com/14801695/2494567
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
异常的背景初识异常我们曾经的代码中已经接触了一些“异常”了.例如:除以0System.out.println(10/0);//执行结果Exceptioninthread"main"java.lang.ArithmeticException:/byzero数组下标越界int[]arr={1,2,3};System.out.println(arr[100]);//执行结果Exceptioninthre

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK