In java we cannot override a final method but is it possible to overload ?
Yes, overloading a final method is perfectly legitimate.
For example:
public final void doStuff(int x) { ... } public final void doStuff(double x) { ... }
2.1m questions
2.1m answers
60 comments
56.9k users