Why can’t I “static import” an “equals” method in Java?
The collision is actually with Object.equals(). All classes are inherited from Object and therefore have the Object.equals() method which leads to this collision. You’re importing by name, not by signature. You actually can’t import a static method named equals because of this. Or rather, you can import it, but not use it. I do agree … Read more