引用傳遞分析

(1)引用傳遞進階分析 示例: public class Test { public static void main(String[] args) { String str="hellow"; fun(str); System.out.println( str); } public static void fun(String temp) { temp="world"; } } 結果:hello
相關文章
相關標籤/搜索