[Java 소스] 비트 연산자 Program.java public class Program { public static void main(String[] args){ exBitLogical(); } private static void exBitLogical() { System.out.println("6&5 :"+(6&5)); System.out.println("6|5 :"+(6|5)); System.out.println("6^5 :"+(6^5)); System.out.println("~6 :"+(~6)); }} 실행 결과6&5 :46|5 :76^5 :3 ~6 :-7 본문[Java] 2.2.4 비트 연산