Which of the following statements is true?
```
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.
You might also like to view...
Write a code fragment that determines and prints the number of times the character 'z' appears in a String object called name.
What will be an ideal response?
Which of the following is a New sheet button?
A.
B.
C.
D.
What are the two GUI clients provided by VMware for use with vSphere?
A. Direct Console User Interface (DCUI) and vSphere User Frontend B. visual CLI and vSphere Client C. vSphere Controller and vSphere Web Client D. vSphere Web client and vSphere Client
In spite of the high technology employed in ERP systems, critical business controls such as a three way match always performed manually.
Answer the following statement true (T) or false (F)