What are the outputs of following java codes. | int[] a ; ан new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; int i; int sum1 = 0: for (i = 0; i


What are the outputs of following java codes.<br>| int[] a ;<br>ан new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };<br>int i;<br>int sum1 = 0:<br>for (i = 0; i < a.length; i++) {<br>1<br>sum1 += a[i];<br>}<br>int j;<br>int sum2<br>for (j = 0; i < a.length; j++) {<br>0;<br>sum2 += a[j];<br>}<br>System.out.println(sum1 - s um2);<br>int i = 5;<br>int j = 5;<br>System.out.println(i<br>3<br>2<br>j);<br>==<br>String s =

Extracted text: What are the outputs of following java codes. | int[] a ; ан new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; int i; int sum1 = 0: for (i = 0; i < a.length;="" i++)="" {="" 1="" sum1="" +="a[i];" }="" int="" j;="" int="" sum2="" for="" (j="0;" i="">< a.length;="" j++)="" {="" 0;="" sum2="" +="a[j];" }="" system.out.println(sum1="" -="" s="" um2);="" int="" i="5;" int="" j="5;" system.out.println(i="" 3="" 2="" j);="=" string="" s="foo" ;="" string="" t="s;" system.out.println(s="" string="" u="iPhone" ;="" string="" v="u.toLowerCase();" string="" w="iphone" ;="" system.out.println(v="int[]" a="" ;="" a="new" int[]="" {="" 1,="" 2,="" 3,="" 4,="" 5};="" int="" sum1="0;" for="" (int="" x="" :="" a)="" {="" t);="" 4="" w);="" 5="" sum1="" +="x;" }="" int="" sum2="0;" for="" (int="" x="" :="" a)="" {="" %3d="" sum2="" +="x;" }="" system.out.println(sum1="" -="">

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here