What is the output of the following code?
int[] oldar= {5, 3, 7, 1, 2};
int[] newar=new int[5];
newar = oldar;
for(int i= 0;i<>
oldar[i] = oldar[i]+ 1;
System.out.println(oldar[i]);
System.out.println(newar[i]);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here