What will be the output of the following code?
int x = 7;System.out.println(x++ + ++x);
What is the result of the expression 5 | 3 in Java?
What is the output of the statement System.out.println(3==3);
What will be the output of this expression?
System.out.println((1 & 2) + (3 | 4) - (5 ^ 6));
Which of these is a bitwise operator in Java?
What will be the value of x after the following code executes?
x
int x = 5;x *= 2 + 3;System.out.println(x);
int a = 5;int b = a++ * --a / ++a + a--;System.out.println(b);
What will be the output of the following Java code?
int x = 8, y = 3, z = 2;System.out.println(x / y * z + x % y);
Consider the following Java expression. What will be the output?
System.out.println(2 << 3 + 1 >> 2);
What will be the output of this code?
System.out.println(~(-5));