int R=0x01;
int r=0x05;
if((r&R)==R) System.out.println("具有读权限");
符号有先后顺序的。