why use interface? if interface declear a method implement
in class. why direct implement method in class
Answer Posted / 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 |
Post New Answer View All Answers
Difference between process and thread?
What is the advantage of OOP in java?
Can we override a variable in java?
what is optional in java 8?
What methodology can be utilized to link to a database?
What is variable and its types?
How can we make a class singleton?
Is there any difference between nested classes and inner classes?
why not override thread to make a runnable? : Java thread
What is string literal in java?
Is namespace same as package in java?
What are the disadvantages of object oriented programming?
How do you escape json?
What is the difference between dom and sax parser in java?
What does exclamation mean in java?