Look at this thread: http://www.daniweb.com/forums/thread206859.html
In C# this would give:
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int i = 0;
i = i++;
Console.WriteLine(i);
Console.ReadKey();
}
}
}
Also in C# it prints 0. I wonder why. I think Java is correct here. Although it is postincrement, this postincrement must happen before the WriteLine. Or am I totally wrong here?