Postfix (i++) vs Prefix (++i) in Java

i++ is known as postfix increment operation while ++i is known as prefix increment operation. We compare these two operations based on:

  • Use/ Program flow
  • The compiler instructions used
  • benchmarking the two operations

Read this article to understand Postfix (i++) vs Prefix (++i) in Java in depth

Have a doubt or thought? Join the discussion now
This is a companion discussion topic for the original entry at