1.

What is difference between x++and ++x in java​

Answer»

Answer:

X++ POST INCREMENT and ++x means pre increment

Explanation:

x= 10

first the execution statement will EXECUTE then x will increment

x++ means 11

but,

in ++x

first the x will increment and then the execution statement will execute



Discussion

No Comment Found