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

Can we have static methods in an interface?

758


What is connection class in java?

696


What are the special characters?

711


what is the difference between process and thread? : Java thread

753


What is an empty string in css?

727






What is the basic of java?

754


What is compareto?

724


What are the parts of methodology?

724


What is meant by data hiding in java?

819


how to create constants in java?

802


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

788


How do you write a good declaration?

679


Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?

768


How does multithreading take place on a computer with a single cpu?

750


How can you read an integer value from the keyword when the application is runtime in java? example?

838