I had this question on a software development quiz and I'm not sure the reasoning behind the answer.
unsigned int x = 1;
while(x > 10) {
System.out.print(x);
x++;
}
My answer was "The code compiles, but there is no output." The correct answer is that "The code does not compile."
Would the compiler not try to run since there are no clear syntax errors?