public class Test1 {public static void main(String[] args) {System.out.println(++2);
}
因为2是一个常量,常量是不能自加或者自减的。