• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

What's the difference between ++x and x++ in java

Hey, I was wondering what is the difference between the instruction x++ and ++x. I know is that x++ is equal to x=x+1 but is ++x the same? thanks

javavariable++xx++instruction
1st Oct 2017, 3:24 PM
Stefko Yoshovski
Stefko Yoshovski - avatar
2 Answers
+ 14
No difference between Java and C++ version! [https://www.sololearn.com/Discuss/160327/what-is-the-difference-between-x-x-x-and-x] [https://www.sololearn.com/Discuss/336732/what-is-the-difference-between-x-and-x] [https://www.sololearn.com/Discuss/305422/x-and-x] [https://www.sololearn.com/Discuss/56740/what-is-the-difference-between-x-and-x]
1st Oct 2017, 3:32 PM
Babak
Babak - avatar
+ 1
thank you very much
1st Oct 2017, 3:33 PM
Stefko Yoshovski
Stefko Yoshovski - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Best language?
0 Votes
Bro can you fix yt error?
0 Votes
Anyone have song names? Comment your favorites here for a project im working on
1 Votes
Need suggestions to learn AI and ML
1 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
Java full stack
0 Votes
Best code for creating games?
0 Votes
Duration of heart refilling
0 Votes
Why isn't a linked video not working
0 Votes