Sunday, April 6, 2014

How many lines are printed on the console when the following for loop is executed?

for (int j = 10; j < 40; j *= 2) { System.out.println(j); } Answer: 2

No comments:

Post a Comment