why use interface? if interface declear a method implement
in class. why direct implement method in class
Answer / fajruddin sk
interface mainly use as of my knowledge-----> (1) for loosely coupling(2)just declare a rule(3)for giving a special behavior(Marker interface) (4)for multiple inheritance
Is This Answer Correct ? | 0 Yes | 0 No |
What is an event?
Do you know why doesn't the java library use a randomized version of quicksort?
How to override equals() and hashCode() method in java?
What is the difference between a Window and a Frame?
Distinguish between a predicate and a function?
What is the association?
Why is a constant variable important?
What is the reason that multiple inheritance is not possible in java??
what is the diff between Servletcontext and servletconfig?
Is string serializable in java?
Difference between association, composition and aggregation?
Can we declare main () method as non static?