Java嵌套接口 Java Pass by reference vs Pass by Value 接口中的Java 8静态方法 Java嵌套接口 class Animal { interface Activity { void move(); } } class Dog implements Animal.Activity { public void move() { System.out.println("Dogs can walk and run"); } } public class Tester { public static void main(String args[]) { Dog dog = new Dog(); dog.move(); } } Java Pass by reference vs Pass by Value 接口中的Java 8静态方法