## Some logical operators

Kind | Java symbol | Operation | Effect |
---|---|---|---|

Unary | ! | not | !a evaluates to true if a is false, and false if a is true. |

Binary | && | and | a && b evaluates to true if a is true and b is true. Otherwise it is false. |

|| | or | a || b evaluates to true if either a or b, or both of them, are true. Otherwise it is false. |