摘要: public class Person { private String name = "小张"; public void say(String c) { System.out.println(c); } public void say() { System.out.println("hello," 阅读全文
posted @ 2022-10-03 10:57 xl4ng 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1.静态代理 package proxy; public interface Greeting { void sayHello(String name); } package proxy; public class GreetingImpl implements Greeting { @Overri 阅读全文
posted @ 2022-10-03 10:23 xl4ng 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1.获取类信息 class Student { static { System.out.println("加载Student类"); } public Student() { System.out.println("Construct Student"); } } public class Clas 阅读全文
posted @ 2022-10-03 10:19 xl4ng 阅读(20) 评论(0) 推荐(0) 编辑