main method in java cannot be overridden since its a static method and static methods can never be overridden in java.
It can be done only if the subclass also uses the static keyword for the method.
It can be done only if the subclass also uses the static keyword for the method.
No comments:
Post a Comment