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

What is tostring () method?

662


What is the file extension for java?

716


What is the purpose of lambda expressions?

679


What is a jagged array in java?

651


What is a variable declaration?

630






What is a finally block? Is there a case when finally will not execute?

649


How many static init can you have?

785


What is java and why do we need it? Explain

683


What is boolean false?

625


What about interrupt() method of thread class ?

680


What is a locale?

800


How many decimal places is a double?

639


What is return used for in java?

607


how to run ecllipse with jettyserver for windows environment using batch file

1594


Explain when we should make an instance variable private.

706