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


Please Help Members By Posting Answers For Below Questions

How to make a class or a bean serializable?

546


Is java a software?

516


What is the dot operator?

575


Define max and min heap, also the search time of heap.

599


Why strings in java are called as immutable?

596






What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

559


Is null an object in java?

567


Can you achieve runtime polymorphism by data members?

593


Differentiate between a constructor and a method? Can we mark constructors final?

678


How many ways can an argument be passed to a subroutine and explain them?

585


Java is pass by value or pass by reference? Explain

537


What do you understand by an io stream?

594


What is an enumeration?

574


Is namespace same as package in java?

548


Why webdriver is an interface?

587