常用位运算符: 1.png 左移与右移运算符应用举例: 2.png 注意: &和|既是逻辑运算符,也是位运算符。如果两侧操作数是boolean类型,就是逻辑运算符;如果两侧操作数是int类型,则是位运算符