public class Tester { public static void main(String[] args) { int x = 0; int y = 0; if ((true & false) | (true & false) & x++>0) System.out.print("stmt1 "); if (false || true | (++y> 0 | y++>0)) System.out.print("stmt2 "); System.out.print(x+" "+y); } }
public static void main(String[] args) {
int x = 0;
int y = 0;
if ((true & false) | (true & false) & x++>0)
System.out.print("stmt1 ");
if (false || true | (++y> 0 | y++>0))
System.out.print("stmt2 ");
System.out.print(x+" "+y);
}
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.