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;
}
}
```

Which of the following statements is true?
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...

Iterator method __________ determines whether the Collection contains more elements.

a. hasNext. b. next. c. contains. d. containsNext.

Computer Science & Information Technology

When you double-click a field in a field list in Query Design View, it is ____.

A. deleted from the query B. added to the next available position in the query design grid C. used as the first sort order D. set as the primary key field

Computer Science & Information Technology