src:
www.javablackbelt.com public class
test {
public static void main(
String[] arg) {
Long val = 4444444L;
if (val > 10) {
System.out.println(">10");
} else {
System.out.println("not sure");
}
}
}
Choices:
>10
not sure
Compilation error at line 3
Compilation error at line 4
None of the above
Ans: >10
I thought answer should be "not sure", as 4444444L would be greater than 10.Please suggest.