- 该请吃饭了~
- 罗胖第327期节目《行业与命运》讲的很是好,新行业里的创业公司是高风险,可是参与其中的我的,倒是低风险,为何?关键在于得到新行业的从业经验,即使你在的公司破产也不要紧,只要你在这个新行业中成为了稀缺的人才,还怕个球~。
- 区块链应用开发颇有多是将来我能参与的大的创业机会,人工智能反而不太可能,即使10年后成为了其中一员,也只是得到较高工资而已。
- 固然,即使如此,我将来也要学人工智能,毕竟,很酷炫啊!!!哈哈!!!
这种是相似服务器宕机,数据库崩溃等错误程序员
Throwable数据库
Exception服务器
try...catch...finally区块链
package com.test.demo001; public class Demo31 { public static void main(String[] args) { Demo01 d = new Demo01(); try{ int i = d.div(10, 0); //底层建立了一个new ArithmeticException("/ by zero"),可是i接不住 System.out.println(i); } catch(ArithmeticException e){ //这里至关于 ArithmeticException e = new ArithmeticException("/ by zero") System.out.println("出错了"+ e); System.out.println(e); } } } class Demo01 { public int div(int a,int b){ return a/b; } }
package com.test.demo001; public class Demo31 { public static void main(String[] args) { int a = 10; int b = 0; int[] arr = {11,22,33,44,55}; try{ System.out.println(arr[1]); System.out.println(a/b); } catch(ArithmeticException e){ System.out.println("除数不可为0"); } catch(ArrayIndexOutOfBoundsException e){ System.out.println("越界了"); } catch(Exception e){ //这个至关于多态 System.out.println("出错了"); } } }