The logical AND operator && returns true only when both sides are true. If either side is false, the whole expression is false.
int age = 25;
boolean hasLicense = true;
if (age >= 16 && hasLicense) {
System.out.println("You can drive.");
}
Both conditions must pass for the message to print. If age were , the first condition would be false, and Java would not even check hasLicense. This behavior is called short-circuit evaluation, and you'll see it in detail a few units from now.