Sudhanshu Mishra wrote:Why can a default method be declare abstract but protected method cannot be declared abstract?
What makes you think that?
Interface methods cannot be declared protected because they are abstract implicitly.
No. Interface methods cannot be declared
protected because they are implicitly
public.
But i think abstract methods could be declared protected,as they can veru well be inherited and overridden.
So...try it.
Winston