Easy learning with example program codes

can we use abstract and final both with a method?

No, as for an abstract method we have to provide implementation in subclass. To do this abstract method have to overridden but final methods cannot be overridden.

Java interview questions on access modifiers

Please follow and like us:

Copyright © 2020 CodesJava Protection Status