Which of the following statements is true?

Consider the classes below:
```
public class TestA {
public static void main(String[] args) {
int x = 2;
int y = 20
int counter = 0;

for (int j = y % x; j < 100; j += (y / x)) {
counter++;
}
}
}

public class TestB {
public static void main(String[] args) {
int counter = 0;

for (int j = 10; j > 0; --j) {
++counter;
}
}
}

```

a. The value of counter will be different at the end of each for loop for each class.
b. The value of j will be the same for each loop for all iterations
c. Both (a) and (b) are true.
d. Neither (a) nor (b) is true.

d. Neither (a) nor (b) is true.

Computer Science & Information Technology

You might also like to view...

All major Web browsers add varying amounts of padding, like the kind shown in the accompanying figure, by default.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

In the accompanying figure, item 2 points to an icon at the left of the computer screen, which is the ____.

A. toolbar B. Dock C. Finder D. menu bar

Computer Science & Information Technology