摘要:
public class Test01 { public static void main(String[] args) { new Test01().device(1,0); } public int device(int a,int b) throws ArithmeticException { 阅读全文
posted @ 2022-01-08 03:48
等风来ysh
阅读(37)
评论(0)
推荐(0)
摘要:
接口类: public interface UserService {// 常量的默认前缀是 public static final int age=3;// 接口中所有的方法都是抽象的,默认前缀是 public abstact void add(); void delete(); void upd 阅读全文
posted @ 2022-01-08 02:52
等风来ysh
阅读(55)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2022-01-08 02:28
等风来ysh
阅读(16)
评论(0)
推荐(0)
摘要:
1.类在加载时候会一起加载静态方法 2.可以使用静态导入包 Person类: public class Person { { System.out.println("匿名代码块");//输出顺序2,作用,可以用来赋予一些初始值 } static { System.out.println("静态代码块 阅读全文
posted @ 2022-01-08 02:18
等风来ysh
阅读(37)
评论(0)
推荐(0)

浙公网安备 33010602011771号