摘要:
package itheima_05;public class Demo02 { public static void main(String[] args) { int a=1; int b=0; test(a,b); } public static void test(int a,int b){ 阅读全文
posted @ 2022-01-04 13:23
凛至
阅读(40)
评论(0)
推荐(0)
摘要:
package itheima_05; public class Demo01 { public static void main(String[] args) { int a=1; int b=0; //如果捕获多个异常,从小到大 try { //监控区域 System.out.println(a 阅读全文
posted @ 2022-01-04 12:56
凛至
阅读(27)
评论(0)
推荐(0)
摘要:
接口 public abstract 可以多实现 没有方法体 没有构造方法 不能被实例化 接口里的属性 public statiic final(常量) 必须重写里面的所有方法 阅读全文
posted @ 2022-01-04 11:44
凛至
阅读(35)
评论(0)
推荐(0)
摘要:
package itheima_04; public class Demo01 { private String name; private int age; public static void run(){ //go(); //静态方法不可以调用非静态方法 System.out.println( 阅读全文
posted @ 2022-01-04 10:41
凛至
阅读(35)
评论(0)
推荐(0)
浙公网安备 33010602011771号