所以,我希望这不会编译,它不会:
// the two is inc'd, so reduces symbolically to println(int int)
// which is a compile error
System.out.println(1 ++ 2);
Run Code Online (Sandbox Code Playgroud)
但这样做:
System.out.println(1 + + 2); // returns three
Run Code Online (Sandbox Code Playgroud)
是什么赋予了?不应该也不编译?
此外,由于操作员,这个问题很难搜索.