Override method with an abstract method


I was studying Functional Interface and in particular Comparator. I read other post about this, but I still have some doubt. Comparator is a function interface because have only an abstract method (compare(T1,T2)). The second abstract

method is equals. So I asked myself. Can an abstract method in a subclass (or interface) override a concrete method in a superclass? Is it an override? what's the mean?

class A{

public void m(){




abstarct class B extends A {

public abstract void m();


I hope I was clear



Read More »

By: coderanchjavageneral - Thursday, 8 November

Related Posts