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 do you know about the garbage collector in java?
What is formatted output?
Write a program to check string is palindrome without using loop?
What is stringjoiner ?
What is a singleton factory?
Is java programming easy?
Can we write a class without main method in java?
What kind of variables can a class consist?
What is anti pattern in java?
What is the use of object and class classes?
How will you call an Applet using Java Script Function?
What happens if main method is not static?
What is the purpose of final keyword and when to use it?
What are anonymous inner classes?
What is the role of garbage collector in java?