I discovered this surprising thing while learning OCA/OCP for Java. Below is the first piece of code of which the if(test condition) part surprises me. public
I'm trying to take a string, passed as an argument, and evaluate it as a boolean expression in an if conditional statement. For example, the user invokes MyPro
This code: if( someCondition ) return doSomething(); return doSomethingElse(); versus this code: if( someCondition ) return doSom