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 are command line arguments?
Which containers may have a MenuBar?
Is it possible for yielded thread to get chance for its execution again ?
What if static is removed from main method?
what is the difference between yielding and sleeping? : Java thread
What is the purpose of the system class in java programming?
What is covariant return type?
Explain pass by reference and pass by value?
Differentiate between a class and an object.
suppose we have an interface & that interface contains five methods. if a class implements that interface then we have to bound that to give tha definition of all five methods in that class. If we declare that class as abstract then can we call only two methods to give the deinition of that method & i don't want to give the definition of all the methods? can it possible
Distinguish method overloading and overriding
When throw keyword is used?