Hello all -
I need hep in understanding 2 things -
1)I was looking at the source code of the Arrays.copyOf and seems like it uses System.arrayCopy.
but this is what is declared in System.arrayCopy -
What is happening here? I do understand that Java is relying on the native calls to copy teh array but jsut interested in details.
2 ) the other question is there are 2 ways of deleting the file - example if you want to remove a file, you do it by calling file.delete() or Runtime.getRuntime().exec("rm filename"); performance wise which is better? I was told that using file io is better but I dont understand how.
Thanks.