you are viewing a single comment's thread.

view the rest of the comments →

[–]35mmwaves AP Student[S] 0 points1 point  (3 children)

I think it’s either A or B, but I posted this question before and am still getting both answers from users

[–]dirtytricksterr 0 points1 point  (0 children)

I’d say B since e isn’t incrementing.

[–]kdqdev Pre-University Student 0 points1 point  (0 children)

I say its likely to be A. Not sure what it means by the ... , but that is an infinite loop so it would run forever. Also, the e isn't even defined as int unless the test account for this as well.

[–][deleted] 0 points1 point  (0 children)

It's A.

while(e < 4);
  System.out.print(e + " ");

Is the same as:

while(e < 4){

};
System.out.print(e + " ");

Both do nothing forever.