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.
You might also like to view...
What are some of the variation changes you can make to a chart?
What will be an ideal response?
"Accurate and swift typing is a skill needed by students" is an example of ________ voice and should be primarily avoided on slides
Fill in the blank(s) with correct word
Most digital cameras create a(n) ____ file.
a. CMYK b. RGB c. LAB d. all of the above
The command strings /bin/echo displays the raw binary characters inside the /bin/echo binary executable program.
Answer the following statement true (T) or false (F)