if insteadwe wanted to create an exact copy of the arrayaand assign that array to the array variablebwe should write clone()which copies all of the cells of into new array and assigns to point to that new array in factthe clone method is built-in method of every java objectwhich makes an exact copy of that object in this caseif we then write [ then the new (copiedarray will have its cell at index assigned the value but [ will remain unchanged we illustrate this point in figure figure an illustration of cloning of array objects we show the result of setting " [ ;after previously setting " clone();we should stress that the cells of an array are copied when we clone it if the cells are base typelike inttheir values are copied but if the cells are object referencesthen those references are copied this means that there are now two