what is main purpose of interface?
Answer Posted / javachi
The purpose of interface is to create the relationship between the parties involved. parties is nothing but a set of classes relates with each other. this is required when the sub class inherits the property of two or more superclasses(multiple inheritance)
| Is This Answer Correct ? | 7 Yes | 8 No |
Post New Answer View All Answers
Explain list interface?
Explain about varargs in java?
What is the difference between an interface and an abstract class?
What are the main differences between the java platform and other platforms?
What lambda means?
Can we make main() thread as daemon?
Highest level event class of the event-delegation model?
What is the numeric promotion?
What is polymorphism in java? What are the kinds of polymorphism?
How can I right-justify a string?
What does singleton class mean?
How to find the given number is a prime number or not by getting input from the user
What is string buffer?
What is the difference between stringbuffer and stringbuilder?
Can we use a default constructor of a class even if an explicit constructor is defined?