Home > Back-end >  Java arrays and problems
Java arrays and problems

Time:01-30

Int [] a={31} 1;
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 object

CodePudding user response:

Arraycopy parameter is the Object, not the Object [], you have a good look at the document
https://docs.oracle.com/javase/8/docs/api/java/lang/System.html
Int [] is Object, so I can of course use
  • Related