0 votes
in JAVA by
What is the output of the following code?

int x = 10;

System.out.println(x++);

a) 10

b) 11

c) Compiler error

d) Undefined

1 Answer

0 votes
by

Solution: a) 10

Explanation: The value of x is printed before it is incremented.

...