Log in or register to post comments Code: public class Test { public static void main(String[] args) { int a = 10, b = 15; if ( ++a < 10 & ++b > 16) { a++; } else { ++b; } System.out.println(a + ", " +b); } } Output: 11, 17 Tags Java Operators Interview Questions Core Java Interview Questions Java Interview Questions