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