Log in or register to post comments Example Code: public class TestA { public static void main(String [] args) { System.out.println(true & false); System.out.println(4 & 5); System.out.println(4 | 5); } } Output: false 4 5 Tags Java Operators Interview Questions Core Java Interview Questions Java Interview Questions