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
can any body body expalin best definitions & best real time exaples for opps concepts.
What is method with example?
What is the purpose of a transient variable?
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.
Why set do not allow duplicates in java?
how do I create a runnable with inheritance? : Java thread
Objects or references which of them gets garbage collected?
What is private static in java?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
What are the six ways to use this keyword?
Is java written in c?
Is array primitive data type in java?
Can an interface be final?
How to overcome the exception object reference not set to an instance of object?
Why we override equals() method?