What is the difference between I ++ and ++ I in java?



What is the difference between I ++ and ++ I in java?..

Answer / Ajay Kumar Verma

In Java, `i++` increments the value of `i` after the expression is evaluated, while `++i` increments the value of `i` before the expression is evaluated. The order of operation matters when using these operators.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What problems will occur when you don?t use layout managers?

1 Answers  


What is the similarity between dynamic binding and linking?

1 Answers  


What is method Overloading in the perspective of OOPS?

6 Answers  


Explain Connection Pooling?

3 Answers  


What lambda means?

1 Answers  


Difference between notify() method and notifyall() method in java?

1 Answers  


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

1 Answers   V2 Solutions,


Explain methods specific to list interface?

1 Answers  


Can we use String with switch case?

1 Answers  


How big is a gigabyte?

1 Answers  


What are the uses of synchronized keyword?

1 Answers  


explain the collection in java

1 Answers   WDC,


Categories