June 2017 | Virtual Species

In Java 3 = 12..

In Java, the output of the below statement is:

     System.out.println(1 + 2 + " = " + 1 + 2);
=> 3 = 12
Why??
        Because Java starts treating everything as a String once it has found a string in System.out statement. Interesting, huh...