File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dan's question

 
Don Bosco
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
int i = 0;
i = i++;
i = i++;
System.out.println("i = " +i);
I was expecting i=2. But the output is 0???
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
 
Don Bosco
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was a great explanation by Maha Anna!!!
Thanks to u guys.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic