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 math in java?
What is complexity in java?
What is string in java? String is a data type?
What do you understand by abstract classes?
What do you mean by platform independence?
What is break and continue statement?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
What does a boolean method return?
Can a class be final?
What is singleton class example?
Can an integer be a string?
When object is created and destroyed?
What is the method to declare member of a class static?
How many bits is a 64 bit byte?
What is the purpose of the enableevents() method?