Thursday, April 26, 2007
Core Java Programming
Core java seems very difficult now a days....
Check out the following statements
What do you think is the output of the above statements..
It is just a simple assignment and increment statement.
i gets incremented only after the execution of the line,
so i =2 in second line
but in the third line the value of i should be incremented but as per the execution of the statement,
Value of i is got as 2
What happened to the increment.....
=+ and ++ cant execute in the same statement and same variable