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 a protected class in java?
Does treeset allow null in java?
How do you generate random numbers in java?
What is extension method in java?
How can we make a class virtual?
Are nested try statements are possible?
What is the purpose of the finalize() method?
What is difference between length and length() method in java ?
What is valid keyword in java?
what is difference between Action messages and Action errors?
When abstract methods are used?
what is the logic inside any default constuctor?