Int [] b=new int [10].
Call System. ArrayCopy (a, 0, b, 0, a. ength);
Here preach and why the array name directly to a past, this arrayCopy parameter is the Object of SRC, int [] a can directly pass a past you, should not be the Object [] SRC wrote to preach the refs? Object SRC is on behalf of a class, so the Object [] array of SRC is
CodePudding user response:
Everything has its object, array objectCodePudding user response:
Arraycopy parameter is the Object, not the Object [], you have a good look at the documenthttps://docs.oracle.com/javase/8/docs/api/java/lang/System.html
Int [] is Object, so I can of course use