as explained here , in java, static methods are not overridden, but hidden using child implementations
this means you cannot use @Override annotations with them
following code
@Override public static void test(String value1, String value2) {
gives this compiler error.
The method test(String, String) of type Child must override or implement a supertype method Child.java
is there an equivalent annotation that I could use to make sure my class βhidesβ the existing static method from the parent class?
source share