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
How to make a class or a bean serializable?
Is java a software?
What is the dot operator?
Define max and min heap, also the search time of heap.
Why strings in java are called as immutable?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
Is null an object in java?
Can you achieve runtime polymorphism by data members?
Differentiate between a constructor and a method? Can we mark constructors final?
How many ways can an argument be passed to a subroutine and explain them?
Java is pass by value or pass by reference? Explain
What do you understand by an io stream?
What is an enumeration?
Is namespace same as package in java?
Why webdriver is an interface?