AP Computer Science A

study guides for every class

that actually explain what's on your next test

! (NOT) Operator

from class:

AP Computer Science A

Definition

The ! operator, also known as the NOT operator, is a unary operator that negates the value of a boolean expression. It returns true if the expression is false, and false if the expression is true.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.