Wasn't sure exactly how to word the question, but I noticed something strange while constructing a date. I found that if I construct a date like this
new Date(+ 1)
it compiled just fine, and so did
new Date(+ + + 1)
If I execute the following, the output is 1
public static void main(String[] args) {
int x = 1;
System.out.println(+ + + + x);
}
Can anyone explain what it is that the JVM thinks I am doing?