What the following code will type:

int i = 0;
System.out.print(++i);
System.out.print(i++);
System.out.print(i);
Explanation
Pre-increment will increase the value of the variable before the use, whereas the post-increment - after.

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Java
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести