clone() question# Java - 爪哇娇娃
c*t
1 楼
int[][] abc = int[3][5];
int[][] def = (int[][])abc.clone ();
My question is that does def contains the reference of rows of abcs
or it's a complete duplication? It seems to me the first one is the
case, but want to make sure.
int[][] def = (int[][])abc.clone ();
My question is that does def contains the reference of rows of abcs
or it's a complete duplication? It seems to me the first one is the
case, but want to make sure.