Currently I'm working on a program which has a memory intense checking process. At some point the code looks like this.
if(isvalid() && false) //this false is acctually another method which will at this given
//point always return false
{
//rest ommited
}
Will the JVM always check the first method (isValid()) or not since x && false is aways false;
I am not sure because while debugging the debugger is jumping to isValid() method at every iteration.