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 update method called?
whats is the use of final,in which situation final can be used in the application?
How do you write a conditional statement?
What will happen if we declare don’t declare the main as static?
What are event-delegation model and event-inheritance model? Which is best?
To the class members how can we provide security?
Can we assign null to double in java?
Why destructor is not used in java?
what is the major difference between linkedlist and arraylist in java?
What is a concrete classes? Is Java object class is concrete class?
What happens if we don’t define serial version uid?
If you do not want your class to be inherited by any other class. What would you do?