About Question com.enthuware.ets.scjp.v6.2.446 :
Posted: Sat Nov 10, 2012 3:36 pm
Hello,
All of the examples are missing the last closing bracket at the very end. It should be :
if ( (str != null) | ( i == str.length() ) )
if ( (str == null) | ( i == str.length() ) )
if ( (str != null) || (i == str.length() ) )
if ( (str == null) || (i == str.length() ) )
So correct answer should be all 4!
All of the examples are missing the last closing bracket at the very end. It should be :
if ( (str != null) | ( i == str.length() ) )
if ( (str == null) | ( i == str.length() ) )
if ( (str != null) || (i == str.length() ) )
if ( (str == null) || (i == str.length() ) )
So correct answer should be all 4!