can any one explain the output of the following detailly
class Int11
{
public static void main(
String[] args)
{
int i = 10 ; // line 1
i = ++i ; // line 2
i = i++ ; // line 3
System . out . println ( i ); // line 4
System.out.println("Hello World!");
}
}
output is 11 but i thought it should be 12 .