public class Test {public static void main(String[] args) { Boolean boolean1= true; test(boolean1); System.out.println(boolean1); } public static void test(Boolean b){ b=false; }
}
为什么boolean1输出true?
public class Test {public static void main(String[] args) { Boolean boolean1= true; test(boolean1); System.out.println(boolean1); } public static void test(Boolean b){ b=false; }
}