Java Programming: & vs &&

Status
You're currently viewing only wb's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

wb

Ars Legatus Legionis
25,208
Subscriptor
Since false == 0 and true == 1

However, this is not necessarily correct. For the anal retentive, this is how true and false are properly represented:

false == 0
true = !false

Which means that when programming, you can always count on false being zero, but you CANNOT count on true being equal to one. The only thing you know for sure is that true != 0.
 
Status
You're currently viewing only wb's posts. Click here to go back to viewing the entire thread.
Not open for further replies.