This preview shows page 1. Sign up to view the full content.
Unformatted text preview: myNumber is odd
true otherwise • Relational operators are always performed last!!
Page 5 Dr. S. GANNOUNI & Dr. A. TOUIR Introduction to OOP Logical Operators
Symbol Operator Name &&
NOT && T F || T F T T F T T T F F F F T F T !
Page 6 F F T Dr. S. GANNOUNI & Dr. A. TOUIR Introduction to OOP Boolean Expressions
• Boolean expression is an expression that is evaluated to a boolean value.
• Atomic Boolean expression uses one and only
one of the relational operators.
• myBalance <= yourBalance • Complex Boolean ex...
View Full Document
- Spring '14