Worked example
int s = 85;
if (s >= 90) {
System.out.println("A");
} else if (s >= 80) {
System.out.println("B");
} else if (s >= 70) {
System.out.println("C");
} else {
System.out.println("F");
}
85 is not >= 90, but it is >= 80, so it prints B and stops checking.