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 |
Program to output as below formate: 1 2 3 4 5 6 7 8 9 10
What is java instanceof operator?
Can we access a database using applets?
How does enum work in java?
Does java support multiple inheritances?
What are the methods to rectify ambiguities in the interfaces in JAVA?
What is substring 1 in java?
aabccdee Find the used alphabets as abcde ?
What does it mean that a method or field is “static”?
What is the byte order of byte buffer?
What is a boolean expression in java?
What is string subsequence method?