Analyze the NOT operator in this Java code:
boolean flag = true; boolean opposite = !flag;
Syntax error in using the NOT operator
Logical error in the code
opposite is false
opposite is true