Boolean logic is foundational in programming, allowing you to perform logical operations.
Source Code
boolean isJavaFun = true;
boolean isFishTasty = false;
System.out.println(isJavaFun && isFishTasty); // Logical AND - false
System.out.println(isJavaFun || isFishTasty); // Logical OR - true
System.out.println(!isJavaFun); // Logical NOT - false