一,setBit testBit权限管理的理解 1.1.jdk7文档解释 public boolean testBit(int n)Returns true if and only if the designated bit is set. (Computes((this & (1<<n)) != 0).)Parameters:n - index of bit to test.Returns:true if and only if the designated bit is set.T…
1.jdk7文档解释 public boolean testBit(int n) Returns true if and only if the designated bit is set. (Computes((this & (1<<n)) != 0).) Parameters: n - index of bit to test. Returns: true if and only if the designated bit is set. Throws: ArithmeticExc…