Leave a Reply 1

Your email address will not be published. Required fields are marked *


renko

renko

Answer: A

Code question:
public class Series {
private boolean flag;

public void displaySeries() {
int num = 2;
while (flag) {
if (num % 7 == 0)
flag = false;
System.out.print(num);
num += 2;
}
}
public static void main(String[] args) {
new Series().displaySeries();
}

}

Output:
run:
BUILD SUCCESSFUL (total time: 0 seconds)