Java Exercises for you
JAVA Exercises for you 1 1. What would be output of the following code segment written in java. public static void main(String [] args) { int a=10, b= 9; boolean x; x = a++ == ++b; System.out.print("x = "+x); } 2 2. Find the output of the following code snippet written in java public static void main(String []args) { int x=10, y=5; System.out.println(x++); System.out.println(++y); System.out.println((x++ + ++y)); System.out.println((++x - y++)); System.out.println((x++) + (++y)); System.out.println((++x)-(y++)); System.out.println((x++) + (++x)); System.out.println("x = "+ X +" y="+ y); } 3 3. ...