日期:2014-05-20 浏览次数:20614 次
@Test public void testObject() { ArrayList list = new ArrayList(); System.out.println("a : " + list.hashCode()); changeObject(list); System.out.println("d : " + list.hashCode()); } public void changeObject(ArrayList list) { System.out.println("b : " + list.hashCode()); list.add("1"); System.out.println("c : " + list.hashCode()); }