java基础题目求助
queston 11.public class test (
2. public static void main (String args[]) {
3. int i = 0xFFFFFFF1;
4. int j = ~i;
5.
6. }
7. )
What is the decimal value of j at line 5?
A. 0
B. 1
C. 14
D. –15
question 2Integer i = new Integer (42);
system.out.println(i.equals(42));
输出____?
------解决方案--------------------C,true
------解决方案--------------------1L正解
------解决方案--------------------int i = 0xFFFFFFF1;
是11111111 11111111 11111111 11110001
~i
是00000000 00000000 00000000 00001110
表示的int值是14