CodesJava

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



Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap