上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 64 下一页
摘要: 总结:https://www.bilibili.com/video/BV1p4411P7V3?p=17&vd_source=499f37677e6da77de2c7d851e9cf00df 注解:什么是注解及作用:注解-->内置注解-->元注解 反射:什么事反射及作用:Class类-->获得类的结构 阅读全文
posted @ 2023-09-14 01:21 被占用的小海海 阅读(13) 评论(0) 推荐(0)
摘要: package annotate; import java.lang.annotation.*; import java.lang.reflect.Field; // 通过反射操作注解 public class Test16 { public static void main(String[] ar 阅读全文
posted @ 2023-09-14 01:08 被占用的小海海 阅读(12) 评论(0) 推荐(0)
摘要: 了解即可 package annotate; import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.Li 阅读全文
posted @ 2023-09-14 00:19 被占用的小海海 阅读(10) 评论(0) 推荐(0)
摘要: package annotate; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.Method; // 性能检测 public class Test12 { 阅读全文
posted @ 2023-09-13 23:42 被占用的小海海 阅读(25) 评论(0) 推荐(0)
摘要: 反射的作用 package annotate; import java.lang.reflect.Constructor; import java.lang.reflect.Field; // 通过反射,动态创建对象 public class Test12 { public static void 阅读全文
posted @ 2023-09-13 23:11 被占用的小海海 阅读(14) 评论(0) 推荐(0)
摘要: package annotate; import java.io.File; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.Method; public c 阅读全文
posted @ 2023-09-13 19:58 被占用的小海海 阅读(10) 评论(0) 推荐(0)
摘要: 完全听不懂 阅读全文
posted @ 2023-09-13 17:08 被占用的小海海 阅读(12) 评论(0) 推荐(0)
摘要: package annotate; // 分析类的初始化,取决于是否实例化对象? public class Test10 { static { System.out.println("main被初始化"); } public static void main(String[] args) throw 阅读全文
posted @ 2023-09-13 16:13 被占用的小海海 阅读(9) 评论(0) 推荐(0)
摘要: package annotate; public class Test09 { public static void main(String[] args) { System.out.println(new A().a); } } class A{ static { a=300; } static 阅读全文
posted @ 2023-09-13 15:03 被占用的小海海 阅读(9) 评论(0) 推荐(0)
摘要: package annotate; import java.lang.annotation.ElementType; public class Test08 { public static void main(String[] args) { Class c1 = Class.class; // C 阅读全文
posted @ 2023-09-13 00:12 被占用的小海海 阅读(16) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 64 下一页