Java-10,方法的重载
public class ReLoad { static String s = "hello"; void reload(){ System.out.println("01"); } void reload(String a){ System.out.println("02\t"+a); } public static void main(String[] args) { ReLoad r1 = new ReLoad(); r1.reload(); r1.reload(s); } }