Why won't this simple Java code compile?
I had this question on a software development quiz and am not sure about the rationale behind the answer.
unsigned int x = 1;
while (x> 10) {
System.out.print (x);
x ++;
}
My answer: "Compiling the code, but no way out." Correct answer: "The code does not compile".
Has the compiler tried to work as there are no clear syntax errors?
+3
source to share
3 answers
in valid unsigned keyword in java, but latest java 8 oracle has an explicit api for long type unsigned
https://blogs.oracle.com/darcy/entry/unsigned_api You can look at the above documentation for more details Hope IT can help u
+5
source to share