class D {
public static void main (String args[]) {
int i1 = ~1;
int i2 = -1;
int i3 = -2;
System.out.print(Integer.toHexString(i1) + ",");
System.out.print(Integer.toHexString(i2) + ",");
System.out.print(Integer.toHexString(i3));
}
}
What is the result of attempting to compile and run the above program?
a. Prints: ffffffff,ffffffff,ffffffff
b. Prints: ffffffff,ffffffff,fffffffe
c. Prints: ffffffff,fffffffe,ffffffff
d. Prints: ffffffff,fffffffe,fffffffe
e. Prints: fffffffe,ffffffff,ffffffff
f. Prints: fffffffe,ffffffff,fffffffe
g. Prints: fffffffe,fffffffe,ffffffff
h. Prints: fffffffe,fffffffe,fffffffe
i. Runtime error
j. Compiler error
k. None of the above
I am somehow just not getting any of the above values. The answer is:f