What is the result?

Given:

25. int x = 12;
26. while (x < 10) {
27. x–;
28. }
29. System.out.print(x);
What is the result?

Given:

25. int x = 12;
26. while (x < 10) {
27. x–;
28. }
29. System.out.print(x);
What is the result?

A.
10

B.
0

C.
12

D.
Line 29 will never be reached.



Leave a Reply 0

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