Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
int i = 1 ; 1) ( int i = 1 ) : i is initialized to 1 The important thing to remember is that in i++ , first the value of i is substituted in place of i++ and then i is incremented immediately . Java dosn't wait to inclrement the value of i util i = i++ whole expression is executed. Thanks
Replies: |
Sponsored Links
|