public class Test { public static void main(String[] args) { int a = 10; int b = ++a; // uncomment below line to see error // b = 10++; System.out.println(b); } }