这些代码什么意思,好像从来没有见过
rt:
package ch3;
// bit.Java
public class bit {
public static void main(String [] args) {
int u = 0xff00 & 0xf0f0;
int v = 0x8000 | 0x80f0;
int y = 0xff00 ^ 0xf0f0;
int z = ~0xff00;
int x=0X80000000;
System.out.println ("u ="+ Integer.toHexString(u));
System.out.println ("v="+Integer.toHexString(v));
System.out.println ("y="+Integer.toHexString(y));
System.out.println ("z="+Integer.toHexString(z));
System.out.println("Before shift x equals " + x);
x=x>>2;
System.out.println("After right shift x equals " + x);
x=x<<2;
System.out.println("After left shift x equals " + x);
x=x>>>2;
System.out.println("After unsigned right shift x equals " + x);
}
}// end class relation
哪位仁兄能给我解释一下,谢谢