About Question enthuware.ocpjp.v21.2.4051 :
Posted: Mon Oct 06, 2025 1:35 pm
option 5 is trying to say, Point p1 when p1.x()>p1.y() -> true, all the other cases are false?
and also, if as explanation says, "a case null branch does not affect the exhaustiveness of a switch", why option 3 says "This switch does not cover the possibility where p is null and is therefore not exhaustive." ? thanks.
and also, if as explanation says, "a case null branch does not affect the exhaustiveness of a switch", why option 3 says "This switch does not cover the possibility where p is null and is therefore not exhaustive." ? thanks.