Java Interface

The following are the key points about java Interface.

  • In Interface, all the members are implicitly abstract methods.
  • Interface contains only abstract methods.
  • All the variables in the Interface are implicitly static final variables.
  • Interface is only the reference. We cannot create an object for an Interface.
  • Interface achieves multiple Inheritance.
  • Interface achieves loose coupling of code.
  • Interface involves in designing a good code.
  • Interface avoids unnecessary codes to the client.
  • The main purpose of Interface is not to reveal the unwanted information to the client.
  • Interface is only meant for maintainability. Nothing to do with performance.
  • When you implement an interface method, it must be declared as public.

If You need more visit our site –


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s