D
DeMarcus
Hi,
Will an if-statement always break at the first
occurence of a 'true' in a chained or-statement?
Like this
if( myArray == null || myArray.length() == 0 )
// Do something
Can I be sure not to have a nullPointerException
at 'myArray.length() == 0' if myArray now happened
to be null?
If 'if' is standardized and anyone has a link that
explains that, that would be terrific for me to
put in as a comment where I use such line.
Thanks
Daniel Marcus
Will an if-statement always break at the first
occurence of a 'true' in a chained or-statement?
Like this
if( myArray == null || myArray.length() == 0 )
// Do something
Can I be sure not to have a nullPointerException
at 'myArray.length() == 0' if myArray now happened
to be null?
If 'if' is standardized and anyone has a link that
explains that, that would be terrific for me to
put in as a comment where I use such line.
Thanks
Daniel Marcus