Here is yet another question from the Sun Learning center practice exam site.
Given:
1. public class juju {
2. public static void main(
String [] args) {
3. double z = 0xFFFFFFFC;
4. int i = 0xFFFFFFDF;
5. double x = z * i;
6. System.out.println(x);
7. }
8. }
What is the result?
A
Compilation fails because of an error on line 3.
B
Compilation fails because of an error on line 5.
C
Compilation succeeds and the program prints "-37.0".
D
Compilation succeeds and the program prints "132.0".
The answer is D because both of those numbers are negative numbers. But how do i know that those two numbers are negative from the reading the code?