You mean why this :
ClassB.getMethodX()
is different from this?
classbObject.getMethodX()
If so, then the second is somehow wrong. I mean it still works, but it makes no sense. The method is declared as static, which “belongs” to the class. You have one static method for a class, not matter how many instances. So, every static method should be called in a static way:
ClassB.getMethodX()
2
solved java static import