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 |
When is update method called?
What are null interfaces in JAVA ? and give me some examples?
Difference between this() and super() in java ?
What are the common problems you have faced while implementing Java?
Why is a singleton bad?
What is prefix of a string?
What will happen when using pass by reference in java?
Explain about interrupt() method of thread class ?
What are the advantages of passing this into a method instead of the current class object itself?
Is null == null in java?
What is broken and continue statement?
wht is mean by dirty read?