Can you overload a final method in Java?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at the Fashion Design Studio, Lives in Milan, Italy.
It is as legal as overloading non-final methods. But you cannot override them (you already know it). You can examine this kind of things by writing small Java classes. yes overloading final method is possible in java.As final methods are restricted not to override the methods.Jan 1, 2010
2023-06-15 06:42:32
评论(499)
Helpful(122)
Helpful
Helpful(2)

Gabriel Wilson
QuesHub.com delivers expert answers and knowledge to you.
It is as legal as overloading non-final methods. But you cannot override them (you already know it). You can examine this kind of things by writing small Java classes. yes overloading final method is possible in java.As final methods are restricted not to override the methods.Jan 1, 2010