LOGICAL NOT OPERATOR (!) 

Logical NOT Operator: 
  • We will used the logical NOT operator to inverse the condition.

  1. public class Notoperator
  2. {  
  3. public static void main(String [] args)
  4. {  
  5. int c23
  6. int b= 45;
  7. System.out.println(!(c>b));
  8. }

Output:

True