[B][COLOR="Red"]Can a final interface has an abstract method?
[/COLOR][/B]this is very tricky question. So, Plz be careful to provide me the correct answer.
-thanks & regards
kaushal k sharma
Printable View
[B][COLOR="Red"]Can a final interface has an abstract method?
[/COLOR][/B]this is very tricky question. So, Plz be careful to provide me the correct answer.
-thanks & regards
kaushal k sharma
implicitly every interface is [COLOR="Navy"]public abstract[/COLOR].
and u cant use abstract and final with same time because
abstract=must be inheritated.
final=must not be inhreitated. both goes in diff. way.
and all the method of interface is implicitly [COLOR="Blue"]public abstract.[/COLOR]
so means [COLOR="Blue"]final interface[/COLOR] cant be happen.
yes by default abstract methods are public.....
The interfaces are cannot final... So final Interface is not a abstract method
Interface are only used to support multi inheritance in java that means we have to inherit more than one interface in java. But a class or interface qualified with final can not be inherited so there is no meaning of final interface.And now u cat
put a abstract method there.
I was being "successfully" misled on this question last time. interface and abstract is like open contract to be implemented. it can NEVER mix with final.
last time the question is, "final" is used to disable override, or extend. then for interface, if use "final", it would disable the interface extending, however, still leave it implementable?
What do you mean by Final Interfacre, there is no interface in the world which is final .
interface cant be a final at all