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
What is multi-catch block in java?
What is a return in java?
What is jit compiler ?
What are the differences between string, stringbuffer and stringbuilder?
What is the differences between c++ and java? Explain
What is thread safe java?
What are the Static and Dynamic Variables? Differentiate them.
Why for each loop is used?
What are the limitations of procedural programming approach?
Can you add null to a list java?
Where are global variables stored?
Is multiple inheritance supported by java?
What is method overriding in java ?
What is the difference between throw and throws in java?
Explain creating threads by extending thread class ?