java programming test

Interfaces in Java

  • A Java interface is simply a list of constants and method signatures.
  • Not to be confused with Graphical User Interfaces (GUI).
  • A Java interface is not a class, therefore you cannot create an instance
  • of an interface.

  • The idea is that a class may implement an interface, meaning it will
  • supply a definition for each method signature in the list.

  • Essentially if a class implements an interface it promises to implement
  • the methods defined in that interface.

  • An interface is used in Java to describe some property a class has or a
  • small service that it provides

     

    Submit Your Assignment and get professional help from our qualified experts!