Please enable JavaScript to use CodeHS

CodeHS Glossary


De Morgan's Laws Java

Laws that define how we can negate an AND statement and how we can negate an OR statement. De Morgan's Laws simply state: 1. `!(a && b)` is equivalent to `!a || !b` 2. `!(a || b)` is equivalent to `!a && !b` where `a` and `b` are boolean values