The output of this program will be:
```
public class Test {
public static void main(String[] args) {
int[] a;
a = new int[10];
for (int i = 0; i < a.length; i++) {
a[i] = i + 2;
}
for (int i = 0; i < a.length; i++) {
result += a[i];
}
System.out.printf("Result is: %d%n", result);
}
}
```
a. Result is: 62.
b. Result is: 64.
c. Result is: 65.
d. Result is: 67.
c. Result is: 65.
You might also like to view...
Compare and contrast the enqueue method of the LinkedQueue class to the push method of the LinkedStack class from Chapter 13.
What will be an ideal response?
A username is required in addition to a(n) ________ to log on to a secured computer
Fill in the blank(s) with correct word
The bitwise ____ operator reverses bits.
A. and B. exclusive or C. inclusive or D. complement
When following a mobile-first strategy, a mobile user must be presented with desktop content also.?
Answer the following statement true (T) or false (F)