The output of this Java program will be:
Consider the class below:
```
public class Test {
public static void main(String[] args) {
int[] a = {99, 22, 11, 3, 11, 55, 44, 88, 2, -3};
int result = 0;
for (int i = 0; i < a.length; i++) {
if (a[i] > 30) {
result += a[i];
}
}
System.out.printf("Result is: %d%n", result);
}
}
```
a. Result is: 280.
b. Result is: 286.
c. Result is: 154.
d. Result is: 332.
b. Result is: 286.
You might also like to view...
?The CARS checklist does NOT include which of the following type of information?
A. ?reasonable B. ?accurate C. ?committed D. ?credible
A _____ provides a means to store and retrieve data that is modeled using some means other than the simple two-dimensional tabular relations used in relational databases.
Fill in the blank(s) with the appropriate word(s).