what is main purpose of interface?
Answer Posted / saikatk
There is no multiple inheritance in java,we can't extends
more than one class at a time,so interface is a way to
implement multiple inheritance in java, and from design
point view when we have some class specific behaviours we
can put interface as a base of the classes.
| Is This Answer Correct ? | 44 Yes | 4 No |
Post New Answer View All Answers
What is the this keyword?
What’s a deadlock?
What is the purpose of the runtime class in java programming?
what is thread in Java ?
Explain the init method?
Describe the various concepts related to object oriented programming (oop).
What is the largest long allowed by java?
What are "class access modifiers" in Java?
Why null value is used in string?
What is object cloning in Java?
What is floating data type?
What is difference between fileinputstream and filereader in java?
What is the size of string?
What are white spaces in java?
If an object is garbage collected, can it become reachable again?