The logical OR operator || returns true when at least one side is true. It only returns false when both sides are false.
boolean isWeekend = true;
boolean isHoliday = false;
if (isWeekend || isHoliday) {
System.out.println("No work today!");
}
Here the message prints because isWeekend is true. Java does not need to check isHoliday at all. You can chain multiple || conditions together: a || b || c returns true if any one of the values is true.