What is the main use of using interface?

Showing Answers 1 - 2 of 2 Answers

Manoj Singh

  • Jul 25th, 2005
 

The Main use of interface in java is to implements the concept of Multiple Inheritence.

  Was this answer useful?  Yes

Partha Mandal

  • Sep 14th, 2005
 

Interface is mainly used to seperate the server side business logic from the client. Because interface contains only the method defination which is getting exposed to the client. Hence if one modifies the coding in the serverside business logic, no change needs to be done on the client side. Classic example can be you can change the BMP to CMP without modifying a single line on the client side.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions