Java方法隐藏 Java重载 Java查找交集 Java方法隐藏 class Demo{ public static void demoMethod() { System.out.println("method of super class"); } } public class Sample extends Demo { public static void demoMethod() { System.out.println("method of sub class"); } public static void main(String args[] ) { Sample.demoMethod(); } } Java重载 Java查找交集