Java Programming: & vs &&

Status
You're currently viewing only Joon H. Huh's posts. Click here to go back to viewing the entire thread.
Not open for further replies.
Are you guys sure about that?

From what I know, the difference is...
if(false & "joon") -> error
if(false && "joon") -> false
("joon" is not a proper boolean expression)

As in, if the second part of the condition is an illegal command, the "&&" operator will simply ignore it.

[EDIT: Oh... prodigy answered his own question, I guess]

-Huh

[This message was edited by Joon H. Huh on October 30, 2001 at 19:14.]
 
Status
You're currently viewing only Joon H. Huh's posts. Click here to go back to viewing the entire thread.
Not open for further replies.