摘要:
package com.exception.demo02;//自定义异常类public class MyException extends Exception{ //传递数字>10; private int detail; public MyException(int a) { this.detai 阅读全文
摘要:
package com.oop.exception;public class Test { public static void main(String[] args) { try { new Test().test(1,0); } catch (ArithmeticException e) { e 阅读全文
摘要:
package com.oop.demo09;//抽象的思维~java//interface 定义的关键字, 接口都需要有实现类public interface UserService { //常量 public static final int AGE = 99; //接口中的所有的定义其实都是抽 阅读全文