摘要:
public class Test { public static void main(String[] args) { int a=1; int b=0; new Test().c(1,0); try{//try 监控区域 System.out.println(a/b); }catch(Excep 阅读全文
posted @ 2025-07-12 17:11
萧xiao
阅读(7)
评论(0)
推荐(0)
摘要:
//外部类 public class Outer { public class inner{ }//成员内部类 public static void main(String[] args) { class Inner{ }//局部内部类 //没有名字的初始化, 不用将实例保存到变量中 new inn 阅读全文
posted @ 2025-07-12 15:46
萧xiao
阅读(4)
评论(0)
推荐(0)
摘要:
接口一: //interface 定义的关键字 , 接口都需要实现类 public interface UserService { //接口里的属性都行静态的常量 int age=10; public static final int age2=20; //接口里定义的方法都是抽象的 public 阅读全文
posted @ 2025-07-12 15:20
萧xiao
阅读(7)
评论(0)
推荐(0)

浙公网安备 33010602011771号