引用传递分析

(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
相关文章
相关标签/搜索