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 |
Which is faster set or list in java?
What is the transient keyword?
Why are the methods of the Math class are static?
Q) I have a ArrayList object, in that object i have added 5 integer values, 5 float values, 5 string values. Now question is how can delete particular type of data ( i.e all int values or all float values or string values) in that list object at a time?
heavy components means what?
How is the marker interface used in Java?
What is a literal coding?
What is the base class in java from which all classes are derived?
What is the difference between Static and final?
What is the significance of listiterator?
What is console based application in java?
what is the difference between future and callable interface in java?