Hi all, In the following statement, what is the use of using abstract with interface. Interface means all the methods in the class are abstract, and abstract class means atleast one method is abstract. "public abstract interface Collection" can anyone explain this
Hi shikhar, Yes, abstract in that decleration is redundant. Every interface is implicitly abstract. This modifier is obsolete and should not be used, though it might compile. cheers, vivek
Hi Vivek, if you see the interfaces in util package, every interface is having the signature with abstract and interface. I think there should be some significance of that.
Hi shikhar.you can use the abstract modifier with an interface.The use as such is perfectly legal.But it should not be used as the use is completely redundant.In fact the JLS also frowns upon the declaration "abstract interface I".