1.
- I only
- II only
- III only
- I and III only
- II and III only
Q1: The following code is intended to store the sum of all the values in the integer array
arr
in the variable total
. Which of the following code segments can be used to replace /* missing code */
so that the code works as intended?int total = 0;
/* missing code */
System.out.println(total);
