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
Зарегистрируйся сейчас
или Подпишись на будущие тесты