What is the output of the following code? public class Demo { public static…
PYQ RPSC Programmer 2024
What is the output of the following code? public class Demo { public static void main(String[] args) { int x = 5; System.out.println(++x * 2); } }
- A.
12
- B.
11
- C.
10
- D.
Compile time error
- E.
Question not attempted
Attempted by 601 students.
Sign up free to check your answer
Sign up freeLoading lesson…

