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 |
How to sort elements in a parallel array in java?
Can we execute java program without main method?
How do you sort a string in java?
Which number is denoted by leading zero in java?
Can variables be used in java without initialization?
How many types of string data types are there?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
Where to store local variables?
what is difference between abstract and interface? can i give real time example for the two topics?
what is the major difference between linkedlist and arraylist in java?
what is mean by synchronization?
3 Answers BOB Technologies, GCPL,
What is thread?