java关于值传递还是引用传递的简单探讨

首先来看两个简单的小例子 eg1:  ​ public static void main(String[] args) { StringBuffer sb = new StringBuffer("字符串"); change(sb); System.out.println(sb); } public static void cha
相关文章
相关标签/搜索