I\'m curious why this simple program could be compiled by java using IntelliJ (Java 7).
public class Main { public static void main(String[] args) {
In this case, Java considers the + operator as a unary operator and hence the result is 10. Just try with the following code:
+
10
int e = + - 10; // result is -10 int e = - - 10; // result is 10