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






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;


for(int i= 0;i<>


System.out.println(oldar[i]);


for(int i= 0;i<>


System.out.println(newar[i]);






Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here