Java Operators
Q1.
What is the output of the following code?
int x = 5;
System.out.println(x++ + ++x);
Q2.
Which operator is used to compare two values in Java?
Q3.
What will be the output of the following expression?
int a = 10, b = 20, c = 30;
System.out.println(a < b && b < c);
Q4.
What does the % operator do in Java?
Q5.
What is the output of this expression?
int a = 5, b = 10;
System.out.println(a > b ? a : b);