Originally posted by Eisa Ayed:
welcome to javaRanch
actually the exam will test you about the Objectives ,
you need to know all things mentioned in the Objective to pass the exam
i++ +i ,
1- 0+0=0
2- 0++=1
so it will print 1
++i+i // print 2
Thank you Eisa, believe me, i am gonna take your
word. I meant, hopefully I dont see an exam that writes System.ou.println on purpose, just to make me fall in a stupid mistake. By the way, the program above prints:
Ma favourite number is 3132 The value of the expression i++ right after the
string, is concatenated and then concatenated with i after increment. Tricky, isn't it?