摘要:
public class Person { private String name = "小张"; public void say(String c) { System.out.println(c); } public void say() { System.out.println("hello," 阅读全文
摘要:
1.静态代理 package proxy; public interface Greeting { void sayHello(String name); } package proxy; public class GreetingImpl implements Greeting { @Overri 阅读全文
摘要:
1.获取类信息 class Student { static { System.out.println("加载Student类"); } public Student() { System.out.println("Construct Student"); } } public class Clas 阅读全文