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 statements?
Is string pool garbage collected?
What is the benefit of singleton pattern?
What is string args [] in java?
What is immutable class in java?
What is string in java is it a data type?
Difference between current previous versions of Java?
how does the run() method in runnable work? : Java thread
How do you input a string in java?
how do I create a runnable with inheritance? : Java thread
What are the supported platforms by java programming language?
What is the differences between heap and stack memory in java? Explain
What is the full meaning of java?
What is * argv?
Why java is secure? Explain.