Can we Overload and Override Static methods in Java ?
Yes, we can overload static method in Java.
No, you can not override static method in Java, though you can declare method with same signature in sub class. It won't be overridden in exact sense, instead that is called method hiding.
Reference:-
No comments:
Post a Comment