auto increment - Simple Question regarding autoincrement operator in Java -


I know that from the C / C ++, the autoincrement operator has a different meaning at which it is applied (Example For: integer = i ++ vs integer = ++ i).

Does the following two statements in Java mean the same thing?

int i = 1

driverVO.setUid (String.valueOf (i ++)); // 1?

driverVO.setUid (String.valueOf (++ i)); // 2?

In the first example, I will increase after the rest of the statement.

In another example, before that I will increase.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -