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.

Related questions

0 votes
asked Oct 9, 2022 in JavaScript by Robin
0 votes
asked Mar 23, 2021 in JavaScript by sharadyadav1986
...