public class test (
2. public static void main (String args[]) {
3. int i = 0xFFFFFFF1;//十六进制
4. int j = ~i;//~是按位取反(32位)
5.
6. }
7. )
What is the decimal value of j at line 5?
A. 0
B. 1
C. 14
D. –15
E. An error at line 3 causes compilation to fail.
F. An error at line 4 causes compilation to fail.
答案: C
2. public static void main (String args[]) {
3. int i = 0xFFFFFFF1;//十六进制
4. int j = ~i;//~是按位取反(32位)
5.
6. }
7. )
What is the decimal value of j at line 5?
A. 0
B. 1
C. 14
D. –15
E. An error at line 3 causes compilation to fail.
F. An error at line 4 causes compilation to fail.
答案: C